Stringify and write JSON to a file atomically
☆223Sep 14, 2025Updated 5 months ago
Alternatives and similar repositories for write-json-file
Users that are interested in write-json-file are comparing it to the libraries listed below
Sorting:
- Read and parse a JSON file☆248May 17, 2023Updated 2 years ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Write a package.json file☆89Sep 11, 2025Updated 5 months ago
- Exclude certain items from an array☆23Jun 13, 2025Updated 8 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last month
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Remove leading, trailing and repeated whitespace from a string☆41Aug 10, 2021Updated 4 years ago
- Simplified high resolution timing☆85Sep 13, 2024Updated last year
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Check if a domain is public☆15Aug 10, 2021Updated 4 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated 8 months ago
- Get all emails in a text file or stdin☆25Feb 2, 2026Updated last month
- ES2015 Number.isSafeInteger() ponyfill☆19Jan 23, 2021Updated 5 years ago
- Add AVA to your project☆15Jan 24, 2021Updated 5 years ago
- Filter object keys and values into a new object☆105May 27, 2024Updated last year
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Truncate a URL to a specific length☆62Sep 22, 2025Updated 5 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Extract the article title of a HTML document☆56Sep 9, 2025Updated 5 months ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Feb 2, 2026Updated last month
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆37Nov 4, 2023Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆27Jun 5, 2025Updated 8 months ago
- Check if a path exists☆155Mar 3, 2022Updated 4 years ago
- Check if a local or remote port is reachable☆112Aug 31, 2023Updated 2 years ago
- Get a random item from an array☆58Mar 28, 2022Updated 3 years ago
- List of text file extensions☆60Oct 29, 2024Updated last year
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Read a package.json file☆175Feb 8, 2026Updated 3 weeks ago
- Test for deep equality - Node.js `assert.deepStrictEqual()` algorithm as a standalone module☆23Sep 17, 2021Updated 4 years ago
- Read the closest package.json file☆268Nov 7, 2025Updated 3 months ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Sum numbers☆10Sep 18, 2025Updated 5 months ago
- Get namespaced config from the closest package.json☆121Nov 5, 2023Updated 2 years ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 4 years ago