@expo/json-file

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

Get started

$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

Weekly DownloadsAcross all versions

Versions

View all versions
10.1.1
next
10.0.14
latest
9.0.2
sdk-52
8.3.3
sdk-51
8.3.0
sdk-50

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