lightning-talk-css/config/utils.js
2023-09-29 19:33:03 +01:00

14 lines
258 B
JavaScript

const slugify = require('slugify');
/** Converts string to a slug form. */
const slugifyString = str => {
return slugify(str, {
replacement: '-',
remove: /[#,&,+()$~%.'":*?<>{}]/g,
lower: true
});
};
module.exports = {
slugifyString
}