Sign in
apache
/
cordova-create
/
67de95665d8f0d96e13fdd98f9cd6a69c0d9e637
/
.
/
node_modules
/
npm
/
node_modules
/
node-gyp
/
node_modules
/
path-array
/
node_modules
/
array-index
/
node_modules
/
es6-symbol
/
node_modules
/
es5-ext
/
string
/
#
/
camel-to-hyphen.js
blob: 1cb8d127796d8bf754349e4505e2477102408e33 [
file
] [
log
] [
blame
]
'use strict'
;
var
replace
=
String
.
prototype
.
replace
,
re
=
/([A-Z])/
g
;
module
.
exports
=
function
()
{
var
str
=
replace
.
call
(
this
,
re
,
"-$1"
).
toLowerCase
();
if
(
str
[
0
]
===
'-'
)
str
=
str
.
slice
(
1
);
return
str
;
};