A module for reading, writing, and manipulating JSON files
- Types
- ESM
- CJS
- License
- MIT
- Install Size
- 39.8 kB(364.8 kB)
- Vulns
- 0
- Published
$
npm install @expo/json-file$
pnpm add @expo/json-file$
yarn add @expo/json-file$
bun add @expo/json-file$
deno add npm:@expo/json-file$
vlt install @expo/json-file$
vp add @expo/json-file
๐ Welcome to
@expo/json-file
A library for reading and writing JSON files.
๐ Setup
Install @expo/json-file in your project.
yarn add @expo/json-file
โฝ๏ธ Usage
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' });