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.
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-slugifyconst 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!'
