mypackage-slugify-tien
v1.0.1
Published
`custom-slugify` is a simple npm library for converting strings into slugs, with the ability to remove specific characters from the result.
Downloads
6
Readme
custom-slugify
custom-slugify
is a simple npm library for converting strings into slugs, with the ability to remove specific characters from the result.
Installation
You can install custom-slugify
using npm:
npm install custom-slugify
const customSlugify = require('custom-slugify');
// Basic usage console.log(customSlugify('Hello World')); // Output: 'hello-world'
// Removing specific characters console.log(customSlugify('Hello World!', { remove: /[*]/g })); // Output: 'hello-world!'