sindresorhus

write-json-file

Stringify and write JSON to a file atomically

by sindresorhus

JavaScript

JavaScript75.4%
TypeScript24.6%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
ghiscoding

I use multiple write-* packages in Lerna-Lite and while updating to all latest major versions, I noticed that not all of these packages use latest versions (i.e. here) which mean that we end up downloading multiple versions of the same package for example uses but in here, we're using an older version uses https://github.com/sindresorhus/write-json-file/blob/301b0780592893953a6b6566e3ec92bca342def1/package.json#L47 So it would be great if this package could be updated to latest version to avoid downloading multiple versions of the same package. I did not check other package of yours, but it might be a nice idea to revisit them. Thanks

ghiscoding · 1y ago
sayhicoelho

If you overwrite the same file using multiple instances simultaneously, an error occurs. Reproduce Open 3 instances of NodeJS and run the code simultaneously. Result !skWOjfw23 Versions NodeJS: v16.17.0 write-json-file: v4.3.0

sayhicoelho · 1y ago
Structured data for AI agents

Repository: sindresorhus/write-json-file. Description: Stringify and write JSON to a file atomically Stars: 225, Forks: 40. Primary language: JavaScript. Languages: JavaScript (75.4%), TypeScript (24.6%). License: MIT. Latest release: v7.0.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, coreyfarrell, DenisCarriere, LinusU, SamVerschueren, BendingBender, paulhayes, Richienb, privatenumber.