UNPKG
@cnamts/design-tokens
Version:
beta (2.9.0-beta.4)
latest (2.16.13)
2.16.13
2.16.10
2.16.8
2.16.7
2.16.6
2.16.5
2.12.0
2.11.0
2.10.0
2.9.0
2.9.0-beta.4
2.9.0-beta.3
2.9.0-beta.2
2.9.0-beta.1
2.9.0-alpha.0
2.8.0
2.7.0
2.6.0
2.5.1
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
2.0.0-beta.10
2.0.0-beta.7
2.0.0-beta.4
2.0.0-beta.0
Design Tokens for the French Health Insurance
github.com/assurance-maladie-digital/design-system
@cnamts/design-tokens
/
dist
/
utils.js
8 lines
(7 loc)
•
219 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
exports
.
__esModule
=
true
;
exports
.
toKebabCase
=
void
0
;
function
toKebabCase
(
value
) {
return
value.
replace
(
/([a-z0-9]|(?=[A-Z]))([A-Z])/g
,
'$1-$2'
).
toLowerCase
(); }
exports
.
toKebabCase
= toKebabCase;