file-store

0.1.0 • Public • Published

file-store

Store data in a file

Example

var FileStore = require("file-store")
    , store = FileStore("temp.txt")
 
store.get("key", function (err, value) {
    console.log("value at key", value)
})
 
store.push("array-key", "array-value", function (err) {
    console.log("pushing a value into an array")
})
 
store.set("key", { some: "value" }, function (err) {
    console.log("setting value at key")
})
 
store.remove("array-key", "array-value", function (err) {
    console.log("removing a value from an array")
})
 
store.delete("key", function (err) {
    console.log("deleting the value at the key")
})

Installation

npm install file-store

Contributors

  • Raynos

MIT Licenced

Readme

Keywords

none

Package Sidebar

Install

npm i file-store

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • raynos