node-sass-json-importer
node-sass-json-importer copied to clipboard
Parse numbers as standalone words in kebab case conversion
I have many color variables that represent different light levels of a single color in increasing lightness (red-lighter1
, red-lighter2
, red-lighter3
, red-darker-1
, etc). Currently, a variable such as redLighter1
would be converted to red-lighter1
instead of red-lighter-1
.
In Lodash, _.kebabCase('redLighter1')
=== 'red-lighter-1'