1.3.0 • Published 3 years ago

@bevry/jsonfile v1.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 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: