1.0.0 • Published 1 year ago

duct-slug-convert v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

using duct-slug-convert

Text to Url Slug conversion tool

Demo

https://codeduct.com/duct-slug-convert

duct-slug-convert setup

npm

npm i duct-slug-convert

Add the duct-slug-convert package in the component you want to use after installation.

import slug from 'duct-slug-convert'

ready to use

Example 1

const convert = slug('String');

Example 2

{{ slug('String') }}

The value sent to the slug function is converted to a url and returned as a value.