【文件属性】:
文件名称:node-readjson:读取文件并将其解析为json
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-24 20:05:23
JavaScript
readjson
读取文件并将其解析为json。
安装
npm i readjson --save
如何使用?
const readjson = require ( 'readjson' ) ;
const json = await readjson ( './package.json' ) ;
// throws if file not found
readjson . sync ( './package.json' ) ;
readjson . sync . try ( './package.json' ) ;
执照
麻省理工学院
【文件预览】:
node-readjson-master
----.travis.yml(199B)
----package.json(1KB)
----.eslintrc.json(237B)
----test()
--------readjson.js(2KB)
----LICENSE(1KB)
----.madrun.js(383B)
----.npmignore(24B)
----.gitignore(74B)
----lib()
--------readjson.js(785B)
----.nycrc.json(240B)
----ChangeLog(2KB)
----README.md(1KB)