1.0.3 • Published 2 years ago

@yourstruggle11/unslugify v1.0.3

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

unslugify

Install

npm i @yourstruggle11/unslugify

Use

var unslugify = require("@yourstruggle11/unslugify");
unslugify('some-string-goes-here') // some string goes here
// if your slug contain something other than '-' as separator
unslugify('some_string_goes_here',{replacement:"_"})  // some string goes here

All available options

unslugify('hello-world', {
  replacement: '-',  // remove specific character from the slug, defaults to `-`
  lower: false,      // convert to lower case, defaults to `true`
  capitalizeEachWord: true,     // as the name suggest capitalize each word of the slug, defaults to `false`
})