File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ language: node_js
22node_js :
33 - ' 12'
44 - ' 10'
5+ - ' 8'
Original file line number Diff line number Diff line change 44 "description" : " Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow" ,
55 "license" : " MIT" ,
66 "repository" : " sindresorhus/decamelize" ,
7+ "funding" : " https://github.com/sponsors/sindresorhus" ,
78 "author" : {
89 "name" : " Sindre Sorhus" ,
910 "email" : " sindresorhus@gmail.com" ,
2829 " dash" ,
2930 " hyphen" ,
3031 " string" ,
31- " str" ,
3232 " text" ,
3333 " convert"
3434 ],
3535 "devDependencies" : {
36- "ava" : " ^1 .4.1 " ,
37- "tsd" : " ^0.7.2 " ,
36+ "ava" : " ^2 .4.0 " ,
37+ "tsd" : " ^0.11.0 " ,
3838 "xo" : " ^0.24.0"
3939 }
4040}
Original file line number Diff line number Diff line change 33> Convert a camelized string into a lowercased one with a custom separator<br >
44> Example: ` unicornRainbow ` → ` unicorn_rainbow `
55
6-
76## Install
87
98```
109$ npm install decamelize
1110```
1211
13-
1412## Usage
1513
1614``` js
@@ -23,7 +21,6 @@ decamelize('unicornRainbow', '-');
2321// => 'unicorn-rainbow'
2422```
2523
26-
2724## API
2825
2926### decamelize(input, separator?)
@@ -34,15 +31,13 @@ Type: `string`
3431
3532#### separator
3633
37- Type: ` string ` <br >
38- Default: ` _ `
39-
34+ Type: ` string ` \
35+ Default: ` '_' `
4036
4137## Related
4238
4339See [ ` camelcase ` ] ( https://github.com/sindresorhus/camelcase ) for the inverse.
4440
45-
4641---
4742
4843<div align =" center " >
You can’t perform that action at this time.
0 commit comments