ntree

1.0.0 • Public • Published

Build Status

ntree

A file system based "living tree" of functional data.

npm install ntree --save

?

It assembles a tree of data from fragments recursed out of the config.mount directory.

Each fragment is a node/javascript file with data per whatever it module.exports.

TODO: It synchronizes changes: file system ---> tree

TODO: It synchronizes changes: file system <--- tree

TODO: It follows symlinks

TODO: It supports functions.

TODO: It emits change events.

eg.

var ntree = require('ntree');
 
ntree.create({mount: '/path/to/data/root'})
 
.then(function(tree) {
  
  // use the tree
 
})
 
.catch(function(e) {});
 

use the tree

 
// pending
 
tree.on('modified');
 
tree.on('unmodified');
 

important

This is not a database.

Reads from updated data fragment (.js) files are synchronous (per require('filename')) and will therefore not scale beyond a moderate concurrency.

Dependents (0)

Package Sidebar

Install

npm i ntree

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nomilous