1.1.0 • Published 3 years ago
node-safe-write
Store and get files width file locker. It is safe in mulit process.
Usage
const safeWrite = require('safe-write')
safeWrite('./file.json', 'newContent').then(() => {});
safeWrite.sync('./file.json', 'newContent');