1.2.0-next.1627426405.97ee2d9878018656b63fe579685e99f0e2a458d5 • Published 5 years ago

@bevry/jsonfile v1.2.0-next.1627426405.97ee2d9878018656b63fe579685e99f0e2a458d5

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Read/Parse/Write a JSON file in Node.js, Deno, ESM, and CJS.

Usage

Complete API Documentation.

Read a JSON file

import readJSON from '@bevry/jsonfile'
readJSON('some/json-file.json')
    .then(console.log)
    .catch((err) => throw err)

Write a JSON file

import { writeJSON } from '@bevry/jsonfile'
writeJSON('some/json-file.json', {some: 'data'})
    .then(() => console.log('done'))
    .catch((err) => throw err)

npm

Discover the release history by heading on over to the HISTORY.md file.

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

These amazing people are maintaining this project:

No sponsors yet! Will you be the first?

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Unless stated otherwise all works are:

and licensed under: