← All repos

node-jsonfile

Easily read/write JSON files.

Browse cluster: JavaScript Standard Style Linting
186commits
28contributors
1languages

Tech stack & purpose

node-jsonfile is a Node.js library that simplifies reading and writing JSON files by wrapping the standard `fs` and `JSON` APIs. It eliminates boilerplate code by handling `JSON.stringify()`, `fs.writeFile()`, `JSON.parse()`, and `fs.readFile()` operations along with error handling in a single method call. The module provides both callback-based and promise-based APIs, as well as synchronous variants, and supports customization options like JSON formatting with spaces, line-ending control, and JSON revivers and replacers. The project is maintained by JP Richardson.

Languages

JavaScript
100.0%

Contributors