JSPM

save-file-atomic

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22098F
  • License MIT

Save anything to file atomic

Package Exports

  • save-file-atomic

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (save-file-atomic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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