shift73k/assets_old/node_modules/webpack-cli/lib/utils/to-kebab-case.js

5 lines
134 B
JavaScript

const toKebabCase = (str) => {
return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
};
module.exports = toKebabCase;