文件名称:decamelize:使用自定义分隔符将驼峰化的字符串转换为小写的字符串
文件大小:8KB
文件格式:ZIP
更新时间:2024-06-15 01:36:20
JavaScript
脱釉 使用自定义分隔符将驼峰化的字符串转换为小写的字符串示例: unicornRainbow → unicorn_rainbow 安装 $ npm install decamelize 用法 const decamelize = require ( 'decamelize' ) ; decamelize ( 'unicornRainbow' ) ; //=> 'unicorn_rainbow' decamelize ( 'unicornRainbow' , { separator : '-' } ) ; //=> 'unicorn-rainbow' decamelize ( 'testGUILabel' , { preserveConsecutiveUppercase : true } ) ; //=> 'test_GUI_label' decamelize ( 'testGUILab
【文件预览】:
decamelize-main
----.gitignore(23B)
----package.json(767B)
----.npmrc(19B)
----index.js(2KB)
----test.js(5KB)
----.github()
--------security.md(179B)
--------workflows()
--------funding.yml(116B)
----license(1KB)
----readme.md(2KB)
----index.test-d.ts(293B)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(1KB)