Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

appellation/terrible-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Designed to prevent file corruption.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published