0.2.0 • Published 6 years ago

terrible-json v0.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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