Installations
npm install @parcel/fs-write-stream-atomic
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.15.0
NPM Version
lerna/3.22.1/node@v16.15.0+x64 (linux)
Releases
Contributors
Languages
JavaScript (84.22%)
Rust (13.48%)
TypeScript (0.92%)
HTML (0.73%)
CSS (0.36%)
Vue (0.08%)
Shell (0.05%)
Elm (0.03%)
SCSS (0.03%)
GLSL (0.02%)
Less (0.02%)
Pug (0.02%)
XSLT (0.02%)
Makefile (0.01%)
Sass (0.01%)
Stylus (0.01%)
MDX (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
5,261,092
Last Day
32
Last Week
32
Last Month
10,305
Last Year
185,460
GitHub Statistics
43,628 Stars
3,403 Commits
2,268 Forks
450 Watching
259 Branches
411 Contributors
Bundle Size
14.70 kB
Minified
4.75 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
2.6.0
Package Id
@parcel/fs-write-stream-atomic@2.6.0
Unpacked Size
19.73 kB
Size
5.90 kB
File Count
14
NPM Version
lerna/3.22.1/node@v16.15.0+x64 (linux)
Node Version
16.15.0
Total Downloads
Cumulative downloads
Total Downloads
5,261,092
Last day
0%
32
Compared to previous day
Last week
-98.7%
32
Compared to previous week
Last month
-1.8%
10,305
Compared to previous month
Last year
-67.9%
185,460
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
fs-write-stream-atomic
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.
USAGE
1var fsWriteStreamAtomic = require('fs-write-stream-atomic'); 2// options are optional. 3var write = fsWriteStreamAtomic('output.txt', options); 4var read = fs.createReadStream('input.txt'); 5read.pipe(write); 6 7// When the write stream emits a 'finish' or 'close' event, 8// you can be sure that it is moved into place, and contains 9// all the bytes that were written to it, even if something else 10// 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 writeuid
{Number}gid
{Number}
encoding
{String} default = 'utf8'mode
{Number} default =0666
flags
{String} default ='w'
No vulnerabilities found.
Reason
30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
binaries present in source code
Details
- Warn: binary detected: packages/core/integration-tests/test/integration/wasm-async/add.wasm:1
- Warn: binary detected: packages/core/integration-tests/test/integration/wasm-dynamic/add.wasm:1
- Warn: binary detected: packages/core/integration-tests/test/integration/wasm-sourcemap-transformer/index.wasm:1
- Warn: binary detected: packages/core/integration-tests/test/integration/wasm-sync/add.wasm:1
- Warn: binary detected: packages/core/integration-tests/test/integration/workers-with-other-loaders/add.wasm:1
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'deployments' permission set to 'write': .github/workflows/ci.yml:133
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/tag-release.yml:22
- Warn: jobLevel 'deployments' permission set to 'write': .github/workflows/tag-release.yml:23
- Warn: no topLevel permission defined: .github/workflows/canary-release.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:11
- Warn: no topLevel permission defined: .github/workflows/dev-release.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:26
- Info: found token with 'none' permissions: .github/workflows/stale.yml:1
- Warn: no topLevel permission defined: .github/workflows/tag-release.yml:1
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:116: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:135: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:136: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:140: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:149: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:166: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:175: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:188: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/ci.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:112: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:120: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:147: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:149: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:157: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:158: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:174: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:182: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:191: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:220: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:224: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:228: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:241: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:249: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:268: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:271: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:275: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:288: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/stale.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/stale.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tag-release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tag-release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-release.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-release.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-release.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/parcel-bundler/parcel/tag-release.yml/v2?enable=pin
- Info: 0 out of 30 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 29 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 16 are checked with a SAST tool
Reason
14 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: RUSTSEC-2024-0421 / GHSA-h97m-ww89-6jmq
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-558p-m34m-vpmq
- Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq
- Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975
Score
3.3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More