【文件属性】:
文件名称:json-js:原始的纯JSON parserstringifier
文件大小:68KB
文件格式:ZIP
更新时间:2021-02-12 21:13:33
TypeScript
json-js
原始的纯JSON解析器/字符串化器。
安装
$ npm install @dqn/json-js
用法
const { parse , stringify } = require ( '@dqn/json-js' ) ;
const obj = parse (
'{"foo":"bar","baz":42,"qux":{"quux":["corge",{"grault":"garply"},[23,"waldo"]]}}' ,
) ;
const str = stringify ( {
foo : 'bar' ,
baz : 42 ,
qux : { quux : [ 'corge' , { grault : 'garply' } , [ 23 , 'waldo' ] ] } ,
} ) ;
执照
麻省理工学院
【文件预览】:
json-js-master
----.gitignore(30B)
----package.json(374B)
----src()
--------index.ts(24B)
--------json.ts(3KB)
----jest.config.js(205B)
----LICENSE(1KB)
----tsconfig.json(6KB)
----.github()
--------workflows()
----.prettierignore(14B)
----README.md(650B)
----.npmignore(112B)
----renovate.json(26B)
----test()
--------json.test.ts(3KB)
----.prettierrc(106B)
----yarn.lock(152KB)