2.2.2 • Published 3 years ago

readjson v2.2.2

Weekly downloads
10,999
License
MIT
Repository
github
Last release
3 years ago

readjson License NPM version Dependency Status Build Status Coverage Status

Read file and parse it as json.

Install

npm i readjson --save

How to use?

const readjson = require('readjson');

const json = await readjson('./package.json');

// throws if file not found
readjson.sync('./package.json');

readjson.sync.try('./package.json');

License

MIT