duct-slug-convert

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i duct-slug-convert

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.47 kB

Total Files

3

Last publish

Collaborators

  • sezaialkan
  • codeduct