readjson

Read file and parse it as json.

MIT 14 个版本
安装
npm install readjson
yarn add readjson
pnpm add readjson
bun add readjson
README

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

版本列表
2.2.2 2021-01-30
2.2.1 2021-01-30
2.2.0 2020-12-22
2.1.0 2020-12-21
2.0.1 2020-02-28
2.0.0 2020-02-28
1.1.4 2018-02-09
1.1.3 2015-12-15
1.1.2 2015-12-15
1.1.1 2015-09-18
1.1.0 2015-06-22
1.0.2 2015-01-09
1.0.1 2014-12-19
1.0.0 2014-11-28