then-stringify-json:使用 promise 优雅地将 JSON 字符串化 - promisified JSON.stringify

时间:2021-06-02 20:22:20
【文件属性】:
文件名称:then-stringify-json:使用 promise 优雅地将 JSON 字符串化 - promisified JSON.stringify
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-02 20:22:20
JavaScript 然后字符串化-json 使用 promise 优雅地将 JSON 字符串化 - promisified JSON.stringify 安装 npm i then-stringify-json --save npm test 用法 有关更多用例,请参阅 var JSONStringify = require ( 'then-stringify-json' ) JSONStringify ( { foo : 'bar' } ) . then ( function ( res ) { console . log ( res ) //=> '{"foo":"bar"}' } ) . catch ( console . error ) 有关的 :功能齐全的 Promises/A+ 实现,性能非常好 : 制作同步函数以支持回调api : 简单的 Promises/A+ 实现 :
【文件预览】:
then-stringify-json-master
----.gitignore(623B)
----package.json(672B)
----LICENSE.md(1KB)
----.travis.yml(429B)
----CONTRIBUTING.md(1KB)
----index.js(411B)
----CHANGELOG.md(213B)
----test.js(1KB)
----README.md(4KB)
----.editorconfig(397B)

网友评论