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.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 1,025 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.