coderaiser / node-readjson

Read file and parse it as json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Read file and parse it as json

License:MIT License


Languages

Language:JavaScript 100.0%