tenebrous-dicebot/api/node_modules/webpack-cli/lib/utils/to-kebab-case.js

6 lines
134 B
JavaScript

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