highland-json:用于Highland.js流的JSON编码器

时间:2021-04-30 11:30:34
【文件属性】:
文件名称:highland-json:用于Highland.js流的JSON编码器
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-30 11:30:34
JavaScript 高地json 流的JSON编码。 这种JSON编码器不仅对对象流进行编码,而且还对流进行递归编码。 您可以传递一个数字流,它将返回一个数字数组。 安装 npm install highland-json 用法 编码对象数组 import _ from 'highland' ; import { stringify } from 'highland-json' ; const input = [ { a : "b" , b : "c" } , { a : [ 1 , 2 , 3 ] } , [ 1 , 2 , 3 ] , [ { a : "b" , b : "c" } ] ] ; _ ( input ) . through ( stringify ) . toArray ( results => { let result = results . join ( '' ) ;
【文件预览】:
highland-json-master
----src()
--------index.js(3KB)
----lib()
--------index.js(12KB)
----.travis.yml(103B)
----gulpfile.js(1KB)
----test()
--------index.js(4KB)
----types.d.ts(934B)
----.gitignore(33B)
----readme.md(4KB)
----package.json(955B)

网友评论