write-json-file VS fs-extra

Compare write-json-file vs fs-extra and see what are their differences.


Stringify and write JSON to a file atomically (by sindresorhus)


Node.js: extra methods for the fs object like copy(), remove(), mkdirs() (by jprichardson)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Sonar - Write Clean JavaScript Code. Always.
write-json-file fs-extra
0 14
204 8,885
- -
1.4 7.5
4 months ago 28 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of write-json-file. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning write-json-file yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of fs-extra. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-24.

What are some alternatives?

When comparing write-json-file and fs-extra you can also consider the following projects:

graceful-fs - fs with incremental backoff on EMFILE

rimraf - A `rm -rf` util for nodejs

fs-jetpack - Better file system API for Node.js

chokidar - Minimal and efficient cross-platform file watching library

mkdirp - Recursively mkdir, like `mkdir -p`, but in node.js

globby - User-friendly glob matching

fs-write-stream-atomic - Like `fs.createWriteStream(...)`, but atomic.

mock-fs - Configurable mock for the fs module

proper-lockfile - An inter-process and inter-machine lockfile utility that works on a local or network file system.

Filehound - Flexible and fluent interface for searching the file system