map-tabular-keys:转换表格对象流的键

时间:2024-06-22 14:36:51
【文件属性】:

文件名称:map-tabular-keys:转换表格对象流的键

文件大小:6KB

文件格式:ZIP

更新时间:2024-06-22 14:36:51

JavaScript

地图表格键 使用映射函数转换表格对象流的键。 因为假设数据是表格的,所以只映射了第一行的键。 然后将结果键用于所有行。 例子 var map = require ( 'map-tabular-keys' ) , snake = require ( 'snake-case' ) , from = require ( 'from2-array' ) , concat = require ( 'concat-stream' ) from . obj ( [ { 'column a' : 3 , columnB : 0.2 } , { 'column a' : 4 , columnB : 0.3 , ignored : true } ] ) . pipe ( map ( snake ) ) . pipe ( concat ( console . log . bin


【文件预览】:
map-tabular-keys-master
----example.js(299B)
----test.js(3KB)
----.travis.yml(49B)
----LICENSE(1KB)
----README.md(2KB)
----appveyor.yml(312B)
----.gitignore(112B)
----index.js(1KB)
----package.json(802B)

网友评论