
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@parcel/fs-write-stream-atomic
Advanced tools
Like fs.createWriteStream(...), but atomic.
Writes to a tmp file and does an atomic fs.rename to move it into
place when it's done.
First rule of debugging: It's always a race condition.
var fsWriteStreamAtomic = require('fs-write-stream-atomic');
// options are optional.
var write = fsWriteStreamAtomic('output.txt', options);
var read = fs.createReadStream('input.txt');
read.pipe(write);
// When the write stream emits a 'finish' or 'close' event,
// you can be sure that it is moved into place, and contains
// all the bytes that were written to it, even if something else
// was writing to `output.txt` at the same time.
fsWriteStreamAtomic(filename, [options])filename {String} The file we want to write tooptions {Object}
chown {Object} User and group to set ownership after write
uid {Number}gid {Number}encoding {String} default = 'utf8'mode {Number} default = 0666flags {String} default = 'w'[2.6.0] - 2022-05-25
@parcel/resolver-glob - DetailscompilerOptions in Vue config - Details<script setup> - Details@parcel/transformer-image - Details@parcel/transformer-image - DetailsuseDefineForClassFields option in tsconfig.json - Details--hmr-host CLI option to set HMR host independently from dev server - DetailsSymbol.toStringTag - Detailsexport declare syntax in generated TypeScript definitions - Detailsthis for named/default imports - DetailssideEffects - DetailsFAQs
Like `fs.createWriteStream(...)`, but atomic.
The npm package @parcel/fs-write-stream-atomic receives a total of 5,122 weekly downloads. As such, @parcel/fs-write-stream-atomic popularity was classified as popular.
We found that @parcel/fs-write-stream-atomic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.