save-file-atomic

1.0.0 • Public • Published

savefile

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Save anything to file atomic.

Install

$ npm i save-file-atomic --save

Usage

const savefile = require('save-file-atomic');
 
// anything can be: ReadStream, Buffer, String
// target is the target file path
await savefile(anything, target);
 
// copy file atomic
await savefile.copy(source, target);

Questions & Suggestions

Please open an issue here.

License

MIT

/save-file-atomic/

    Package Sidebar

    Install

    npm i save-file-atomic

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • akitasummer
    • gxkl
    • gemwuu
    • eggjs-admin
    • fengmk2
    • atian25
    • dead_horse
    • wanghx
    • hyj1991
    • killagu
    • coolme200
    • mansonchor.zzw
    • hubcarl