Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 533 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 533 Bytes

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