【文件属性】:
文件名称:camelcase-keys:将对象键转换为驼峰式大小写
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-26 07:47:41
JavaScript
骆驼钥匙
使用将对象键转换为驼峰式大小写
安装
$ npm install camelcase-keys
用法
const camelcaseKeys = require ( 'camelcase-keys' ) ;
// Convert an object
camelcaseKeys ( { 'foo-bar' : true } ) ;
//=> {fooBar: true}
// Convert an array of objects
camelcaseKeys ( [ { 'foo-bar' : true } , { 'bar-foo' : false } ] ) ;
//=> [{fooBar: true}, {barFoo: false}]
camelcaseKeys ( { 'foo-bar' : true , nested : { unicorn_rainbow : tr
【文件预览】:
camelcase-keys-main
----.gitignore(23B)
----package.json(1KB)
----.npmrc(19B)
----index.js(2KB)
----test.js(3KB)
----bench()
--------fixture.json(1KB)
--------package.json(53B)
--------bench.js(372B)
----.github()
--------security.md(179B)
--------workflows()
--------funding.yml(120B)
----license(1KB)
----readme.md(3KB)
----index.test-d.ts(1KB)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(2KB)