# jprichardson/node-jsonfile

Easily read/write JSON files.

Repository: https://github.com/jprichardson/node-jsonfile
Canonical: https://ross.abutalabs.com/products/node-jsonfile
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-04-20T15:30:29+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 5105, "days_push": 135, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1212, forks 389 (observed 2026-08-28T04:04:00.385912+00:00)

## What it is
A small Node.js library that simplifies reading and writing JSON files by wrapping fs and JSON.parse/stringify in convenient methods. It supports callback, promise, and synchronous APIs.

## Use cases
- read a  config file in node
- write an object to a  file
- parse  from disk without try/catch boilerplate
- save application state as
- load  data synchronously in a script

## When to choose
- you're on Node.js and want dead-simple JSON file I/O
- you want callback, promise, and sync APIs in one tiny module

## When to avoid
- you need JSON file handling in the browser
- you need streaming or large-file JSON parsing
- you already use fs-extra which includes this functionality

## Facets
- artifact type: library
- maturity: stable
- function: file-system, serialization
- domain: files, developer-tools, backend
- platform: -
- tags: -files, read-write, fs-wrapper, npm, nodejs

## Member repositories
- jprichardson/node-jsonfile (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.385912+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:18:00.192183+00:00, confidence not recorded.
  - readme: https://github.com/jprichardson/node-jsonfile (fetched 2026-08-28T04:04:00.385912+00:00, sha eadc3a036840)
- Data as of 2026-08-30T08:39:29.467469+00:00.
