1.0.4 • Published 6 years ago

slushii-utils v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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>");
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago