safe-write

1.1.0 • Public • Published

node-safe-write Build Status

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

/safe-write/

    Package Sidebar

    Install

    npm i safe-write

    Weekly Downloads

    15

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    2.12 kB

    Total Files

    3

    Last publish

    Collaborators

    • bacra