terrible-json

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i terrible-json

Weekly Downloads

0

Version

0.2.0

License

ISC

Unpacked Size

49.7 kB

Total Files

8

Last publish

Collaborators

  • appellation