slushii-utils
v1.0.4
Published
a utils package for slushii
Maintainers
Readme
slushii-utils
A utils package for slushii
install
npm install slushii-utils
how to use
slugify text
const slushii = require("slushii-utils");
const Utils = new slushii();
// will return "beep-boop"
const slug = slushii.slugify("beep boop");xss protection
const slushii = require("slushii-utils");
const Utils = new slushii();
// will return stripped text of any html scripts
const slug = slushii.xssProtect("<script>unsave text</script>");