npm.io
1.1.0 • Published 5 years ago

@jzach/slugger

Licence
ISC
Version
1.1.0
Deps
1
Size
1 kB
Vulns
0
Weekly
0

Slugger

Slugger is a JavaScript library that accepts any number of strings as arguments and returns a single string with hyphens between each word

npm i @jzach/slugger

Usage

const {slug} = require("@jzach/slugger");

slug.pluralize("Hi", "this is     me", "I hope    you will have an     AWESOME day"]) # returns "hi-this-is-me-i-hope-you-will-have-an-awesome-day"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.