# @expo/json-file

> A module for reading, writing, and manipulating JSON files

Latest version **11.0.1** (published 2026-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @expo/json-file
pnpm add @expo/json-file
yarn add @expo/json-file
bun add @expo/json-file
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 11.0.1 |
| Published | 2026-07-15 |
| First published | 2017-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52077 |
| Maintainers | ide, brentvatne, expoadmin, exponent, bycedric, kudochien, alanhughes, tsapeta, expo-bot, philpl, wschurman |
| Keywords | json |

## Links

- npm: https://www.npmjs.com/package/@expo/json-file
- Repository: https://github.com/expo/expo
- Homepage: https://github.com/expo/expo/tree/main/packages/@expo/json-file#readme
- Issues: https://github.com/expo/expo/issues
- npm.io page: https://npm.io/package/@expo/json-file

## Dependencies (2)

- [json5](https://npm.io/package/json5.md) ^2.2.3
- [@babel/code-frame](https://npm.io/package/@babel/code-frame.md) ^7.20.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 11.0.1 (latest) — 2026-07-15
- 11.0.2-canary-20260909-ea7a89a (canary) — 2026-09-09
- 10.2.1-canary-20260701-9100865 (canary-sdk-56) — 2026-07-01
- 10.0.16 (sdk-54) — 2026-05-28
- 10.0.15 (sdk-55) — 2026-05-21
- 10.0.14-canary-20260429-a5e59cf (canary-sdk-55) — 2026-04-29
- 9.0.2 (sdk-52) — 2025-02-14
- 8.3.3 (sdk-51) — 2024-04-23
- 8.3.0 (sdk-50) — 2023-12-12
- 8.2.28-alpha.0 (alpha) — 2021-02-18
- 11.0.2-canary-20260902-26df09e — 2026-09-02
- 11.0.2-canary-20260812-27f94d4 — 2026-08-12
- 11.0.2-canary-20260806-8c2d007 — 2026-08-06
- 10.2.1-canary-20260723-64edab9 — 2026-07-23
- 10.2.1-canary-20260720-b6d63bc — 2026-07-20
- … 225 more at https://npm.io/package/@expo/json-file/versions

## README

<!-- Title -->
<h1 align="center">
👋 Welcome to <br><code>@expo/json-file</code>
</h1>

<p align="center">A library for reading and writing JSON files.</p>

<!-- Body -->

## 🏁 Setup

Install `@expo/json-file` in your project.

```sh
yarn add @expo/json-file
```

## ⚽️ Usage

```ts
import JsonFile, { JSONObject } from '@expo/json-file';

// Create a file instance
const jsonFile = new JsonFile<JSONObject>(filePath);

// Interact with the file
await jsonFile.readAsync();
await jsonFile.writeAsync({ some: 'data' });
```

---
_Source: https://npm.io/package/@expo/json-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
