hyphenslug
Opinionated Node.js function that returns a slug made only of lowercase letters, numbers and hyphens, from any string.
const hyphenslug = // i-just-want-a-simple-url-slug // unicode-love-is-radioactive
Might be too big to be used in the browser, since it relies on the unicode package.