npm.io
11.0.1 • Published 6d ago

@expo/json-file

Licence
MIT
Version
11.0.1
Deps
2
Size
40 kB
Vulns
0
Weekly
0
Stars
50.7K

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' });

Keywords