UNPKG
uhyphen
Version:
latest (0.2.0)
0.2.0
0.1.0
0.0.0
A micro utility to hyphenize strings
github.com/WebReflection/uhyphen
WebReflection/uhyphen
uhyphen
/
es.js
2 lines
(1 loc)
•
211 B
JavaScript
View Raw
1
2
var
uhyphen=
function
(
e
)
{
"use strict"
;
return
e.
default
=e=>e.
replace
(/(([A-Z0-
9
])([A-Z0-
9
][a-z]))|(([a-z0-
9
]+)([A-Z]))/g,
"
$2
$5
-
$3
$6
"
).
toLowerCase
(),Object.
defineProperty
(e,
"__esModule"
,{
value
:!
0
}),e}({}).
default
;