Read/Parse/Write a JSON file in Node.js, Deno, ESM, and CJS.
npm install @bevry/jsonfileRead/Parse/Write a JSON file in Node.js, Deno, ESM, and CJS.
``typescript`
import readJSON from '@bevry/jsonfile'
readJSON('some/json-file.json')
.then(console.log)
.catch((err) => throw err)
`typescript``
import { writeJSON } from '@bevry/jsonfile'
writeJSON('some/json-file.json', {some: 'data'})
.then(() => console.log('done'))
.catch((err) => throw err)
npm install --save @bevry/jsonfileimport pkg from ('@bevry/jsonfile')const pkg = require('@bevry/jsonfile').defaultThis package is published with the following editions:
@bevry/jsonfile/source/index.ts is TypeScript source code with Import for modules@bevry/jsonfile aliases @bevry/jsonfile/edition-es2019/index.js@bevry/jsonfile/edition-es2019/index.js is TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules@bevry/jsonfile/edition-es2019-esm/index.js is TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modulesDiscover 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: