Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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 = 0666
flags
{String} default = 'w'
[2.5.0] - 2022-04-21
__dirname
and __filename
to refer to the original path when building for Node.js targets - Details$schema
support in web extension manifest - Detailsin
expressions with process.env
, e.g. 'foo' in process.env
- Details<style>
elements as CSS modules - Detailssrcset
attribute - Details.env
files when entries are specified using "source"
field in package.json - DetailsFAQs
Like `fs.createWriteStream(...)`, but atomic.
The npm package @parcel/fs-write-stream-atomic receives a total of 2,133 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.