nodbstore-fs
v0.0.1-beta.4
Published
NoDbStore module to use a filesystem on it
Downloads
2
Readme
NoDBStore-fs
Storage for NoDBStore using fileSystem (syncroneously)
Getting started
npm i nodbstore nodbstore-fs
const NoDB = require('nodbstore')
const NoDBStorageFS = require('nodbstore-fs')
const db = new NoDB() // init db
// init storage
const fsStore = new NoDBStorageFS('Path/to/the/db/file')
db.addStore(fsStore) // add the store
// load the db from fs
db.loadFromStore(fsStore)
// or
fsStore.load()
// export db to file
fsStore.export('export/to/file')
// import db from file
fsStore.import('db/file/to/import')