This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/config/utils/index.js
2023-12-13 14:41:46 -08:00

13 lines
217 B
JavaScript

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