Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fileobj

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fileobj

Serialization, parsing, and saving objects to and from a file.

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

fileobj

Node.js module to handle saving, serializing, and reading an object to and from a file.

Installation

npm install fileobj

Usage

Instantiation

dirname is the directory name where you plan on storing the file data.

var fileObj = require('fileobj')(dirname);

Save

fileObj.save(obj, cb);
  • obj : javascript object to be saved to file.
  • cb : callback that accepts two parameters, err and id (id of the file, used to open).

Read

fileObj.read(id, cb);
  • id : id of the file you wish to open.
  • cb : callback that accepts two parameters, err and object (object read).

All

fileObj.all(cb);
  • cb : callback that accept two parameters, err ids (array of id's of all files).

Author

M. Elliot Frost, CEO and President of Frostware Technical Solutions, LLC

Keywords

FAQs

Package last updated on 12 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc