nor-json-file

JSON file editing with transactions

npm install nor-json-file
2 downloads in the last week
4 downloads in the last month

nor-json-file

Prototype of JSON file editing with JSON diff based transactions.

```javascript var file = 'samples/test.json'; var JSONFile = require('nor-json-file'); JSONFile.open(file).then(function(data) { data.messages.push( {'subject':'Hello', 'body':'This is a test message.'} ); return data.commit(); }).then(function() { util.debug('Successfully edited '+file); }).fail(function(err) { / ... / }).done();

/ EOF /

npm loves you