Package Exports
- @expo/json-file
- @expo/json-file/build/JsonFile.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@expo/json-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
👋 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' });