Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

data-save

dzoba2MIT0.1.14

Key-Value Storage of true data types for node.js

file, store, storage, key, value, key-value, json, db

readme

data-save

Key-Value Storage of true data types for node

data-save is an API to store Key-Value pairs as true data types. It uses a file at the root of the project.

It handles JSON objects, arrays, booleans, numbers, and even returns undefined and null accurately.

npm install data-save

data-save is based heavily on the excellent Vault.js by the preeminent Jimmy Byrum

Usage

var ds = require('data-save');

ds.set(<key>, <value>, [config], [file]);
ds.get(<key>, [file]);
ds.remove(<key>, [file]);
ds.clear([file]);
ds.list([file]);

If no file is supplied, the default file will be used