@mskian/slugify
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @mskian/slugify

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.78 kB

Total Files

5

Last publish

Collaborators

  • mskian