@shani-sabag/slugger
v1.3.0
Published
a function that accepts any number of strings as arguments and returns a single string with hyphens between. [![slugger](slugger.png)](https://www.npmjs.com/package/@shani-sabag/slugger)
Downloads
2
Readme
Slugger
a function that accepts any number of strings as arguments and returns a single string with hyphens between.
installation
npm i @shani-sabag/slugger
CommonJS
const slugger = require('@shani-sabag/slugger');
ES6 modules
import { slugger } from '@shani-sabag/slugger';
Usage
slugger.slugger("I am", "a", "slugged string", "i contain no spaces")
output:
"i-am-a-slugged-string-i-contain-no-spaces"