1.3.0 • Published 2 years ago

@shani-sabag/slugger v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Slugger

a function that accepts any number of strings as arguments and returns a single string with hyphens between. slugger

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"