varunslugify=require("@yourstruggle11/unslugify");unslugify('some-string-goes-here')// some string goes here// if your slug contain something other than '-' as separatorunslugify('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`})