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

6 lines
134 B
JavaScript
Raw Normal View History

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