lightning-talk-css/config/utils.js

14 lines
258 B
JavaScript
Raw Normal View History

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