terrible-json
v0.2.0
Published
A terrible file system manager.
Downloads
3
Readme
Terrible JSON
This module simply assures that your precious files will never get accessed for concurrent reads and writes.
Note: This is can be used for any form of file reading/writing, not just JSON.
const badJSON = require('terrible-json');
badJSON('./bad.json', { some: 'data' });
badJSON('./bad.json', { some: 'other', data: 'lol'});
badJSON('./bad.json').then(console.log);
badJSON('./bad.json', { other: 'data' });