1.0.0 • Published 3 years ago

@mskian/slugify v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Slugify

Slugify the User input - Convert into SEO Friendly URL

npm install @mskian/slugify --save

or

yarn add @mskian/slugify

Usage

// Commonjs Import
const { slugify } = require("@mskian/slugify");

// or ES6 import
import { slugify } from "@mskian/slugify";

console.log(slugify('The Dreams of the Healer'));
// output - the-dreams-of-the-healer

I use this on My Projects to Slugify the Value from Query Parameters
Support both Vite JS and Rollup JS.

window.open("https://example.com/api/" + slugify(name), "_self", "noopener, noreferrer");

LICENSE

MIT

1.0.0

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago