NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #264 most downloaded on npm
Easily read/write JSON files.
Latest stable
6.2.1
Last release 7 months ago
20 Apr 2026
Ships unpredictably
gaps range from 2 weeks to 4.8 years
Nearly every release is documented
notes for 26 of 27 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
27 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
This project publishes no release notes. Between 6.2.0 and 6.2.1 there were 2 commits, 1 of them substantive:
This project publishes no release notes. Between 6.2.0 and 6.2.1 there were 2 commits, 1 of them substantive:
Add support for importing as ESM named imports (e.g. import { readFileSync } from 'jsonfile')
import { readFileSync } from 'jsonfile') (#162)Your coding agent can read these notes before it upgrades. Set up the MCP server →
- Update dependency (#130) - Fix code style
BREAKING: Drop support for Node 6 & 8
BREAKING: If no callback is passed to an asynchronous method, a promise is now returned
BREAKING: Remove global spaces option.
spaces option.passParsingErrors option.EOL override option to writeFile when using spaces. [#89]Fixed bug in writeFile when there was a serialization error & no callback was passed. In previous versions, an empty file would be written; now no fil
writeFile when there was a serialization error & no callback was passed. In previous versions, an empty file would be written; now no file is written.Changed behavior of throws option for readFileSync; now does not throw filesystem errors when throws is false
throws option for readFileSync; now does not throw filesystem errors when throws is falseadded optional support for graceful-fs [#62]
graceful-fs [#62]- fix to support BOM. [#45][#45]
add throws to readFile(). See [#39][#39]
throws to readFile(). See [#39][#39]fs module. Useful with mock-fsinclude file name in parse error. See: https://github.com/jprichardson/node-jsonfile/pull/34
split out tests into separate files
throws when set to true in readFileSync(). See: https://github.com/jprichardson/node-jsonfile/pull/33fixed regression when passing in string as encoding for options in writeFile() and writeFileSync(). See: https://github.com/jprichardson/node-jsonfile
writeFile() and writeFileSync(). See: https://github.com/jprichardson/node-jsonfile/issues/28added options.spaces to writeFile() and writeFileSync()
options.spaces to writeFile() and writeFileSync()fixed if passed readFileSync(file, 'utf8'). See: https://github.com/jprichardson/node-jsonfile/issues/25
readFileSync(file, 'utf8'). See: https://github.com/jprichardson/node-jsonfile/issues/25fixed regressions if null is passed for options. See: https://github.com/jprichardson/node-jsonfile/issues/24
null is passed for options. See: https://github.com/jprichardson/node-jsonfile/issues/24cleanup: JavaScript Standard Style, rename files, dropped terst for assert
update license attribute https://github.com/jprichardson/node-jsonfile/pull/21
added \n to end of file on write. #14
\n to end of file on write. #14options.throws to readFileSync()bugfix: passed options to fs.readFile and fs.readFileSync. This technically changes behavior, but changes it according to docs. [#12][#12]
options to fs.readFile and fs.readFileSync. This technically changes behavior, but
changes it according to docs. [#12][#12]fixed catching of callback bug (ffissore / #5)
added options param to methods, (seanodell / #4)
options param to methods, (seanodell / #4)removed homepage field from package.json to remove NPM warning
homepage field from package.json to remove NPM warningchanged spacing default from 4 to 2 to follow Node conventions
.npmignore, #14 to 2 to follow Node conventions…"Breaking change to fs-extra" [#25]: https://github.com/jprichardson/node-jsonfile/issues/25 "support string encoding param for read methods" [#24]: h…
One column per quarter.