1.0.4 • Published 3 years ago
@huzapi/slugify-handler v1.0.4
Huz Api / Component Slugify
Slugifies text, text array and text map
Test (100% TDD)
npm test
Install to your project
npm i @huzapi/slugify-handler
Import
const Slugify = require('@huzapi/slugify-handler');
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"] |