0.0.1-beta.4 • Published 7 years ago
nodbstore-fs v0.0.1-beta.4
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')
0.0.1-beta.4
7 years ago
0.0.1-beta.3
7 years ago
0.0.1-beta.2
7 years ago
0.0.1-beta.1
7 years ago
0.0.1-beta.0
7 years ago