New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bouillon

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bouillon

[add gitter] [add npm tag] [add build] [add coverage]

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Bouillon

[add gitter] [add npm tag] [add build] [add coverage]

Bouillon is a persistant storage option that lets you manage your data as an object and encrypts and stores it in a directory of your choosing. You can work with a local copy of your data and save/read the stored version at any time.

Bouillon saves your data atomically so that you always have a good version of your data even if something went wrong while saving and it has support for auto-saving if you're confident about your changes to your local object and don't want to worry about saving.

Bouillon has only one dependency and that is NPM's write-file-atomic which is used to save the data atomically.

Installation

Bouillon prefers the latest version of node but it will work with node v7.6.0 or higher for ES2015 and async function support.

$ npm install --save bouillon

Basic Example

To start using Bouillon, simply start by requiring the module, setting your desired options, and creating a new instance of the class.

const Bouillon = require("bouillon");

let options = {
    name: "my-cool-node-app",
    encryptionKey: "PfHJgpKNEKawuTHDCRmdTZKMyfvSZGnf",
};

let bouillon = new Bouillon(options);

From there you're free to modify the local object and save it.

bouillon.set("favorite.movie", "Iron Man");

bouillon.write()
    .then((data) => {
        // Do something after you write.
    });

// Or write synchronously.
bouillon.writeSync();

Check out the full documentation to learn about all the features and how to use them correctly.

Documentation

Click here to view the full Bouillon documentation.

Running Tests

To run the currently available Bouillon tests, simply use the command below.

$ npm test

License

MIT

FAQs

Package last updated on 27 May 2018

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