1.0.1 • Published 3 years ago
@huzapi/component-slugify v1.0.1
Huz Api / Component Slugify
Slugifies text, text array and text map
Test (100% TDD)
npm test
Install to your project
npm i @huzapi/component-slugify
Import
const Slugify = require('@huzapi/component-slugify');
Methods
Class | Input | Output |
---|---|---|
toDash | Hello world! | hello-world |
toDash | ["€1000","İSTANBUL/TÜRKİYE"] | ["euro-1000","istanbul-turkiye"] |
toPlain | Hello world! | helloworld |
toPlain | ["€1000","İSTANBUL/TÜRKİYE"] | ["euro1000","istanbulturkiye"] |
toKeyword | Hello world! | helloworld |
toKeyword | ["€1000","İSTANBUL/TÜRKİYE"] | ["euro%1000","istanbul%turkiye"] |
1.0.1
3 years ago