1.0.2 • Published 5 years ago
generator-slug v1.0.2
Generator Slug
this is func helper create slug from string support multi languages
Installation
Use the package manager pip to installgenratorSlug.
npm install genrator-slug
yarn add genrator-slugnpm run test
yarn testUsage
import generator-slug
generator-slug.generatorSlug('hello word') # returns 'hello-word'
first: string covert slug
second: allow add generator character make your slug unique
three: length of string generator by function
generator-slug.generatorSlug(('hello word',true,6) # returns 'geese'Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.