JSPM

@expo/json-file

9.0.3-canary-20250331-817737a
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3271556
  • Score
    100M100P100Q195309F
  • License MIT

A module for reading, writing, and manipulating JSON files

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