@yourstruggle11/unslugify

1.0.3 • Public • Published

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`
})

Readme

Keywords

Package Sidebar

Install

npm i @yourstruggle11/unslugify

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

3.85 kB

Total Files

4

Last publish

Collaborators

  • yourstruggle11