nodbstore-fs

0.0.1-beta.4 • Public • Published

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')

Package Sidebar

Install

npm i nodbstore-fs

Weekly Downloads

0

Version

0.0.1-beta.4

License

MIT

Last publish

Collaborators

  • westixy