fs-db
wip to use fs as a db
Last updated 5 years ago by ahdinosaur .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fs-db 
SYNC missed versions from official npm registry.

fs-db

a silly work in progress to use the filesystem as a database.

the purpose is for apps to have human editable and readable data that can be iterated on easily (vim macros over sql migrations) and shared more openly (GitHub repos over JSON APIs).

how to

install

npm install --save fs-db

use

var FsDb = require('fs-db')

var fsDb = FsDb({
  location: __dirname + '/data',
})

fsDb.createReadStream()
  .pipe(process.stdout)

FsDb(options)

possible options are:

  • location: root filesystem directory of the database
  • codec: codec to use (defaults to 'json'), see codecs

fsDb.createReadStream()

returns a readable pull stream of objects with JSON Pointer ids based on the path.

Current Tags

  • 2.1.3                                ...           latest (5 years ago)

5 Versions

  • 2.1.3                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (9)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |