Table of Contents
NPM package that cleans and sluggifies any string, see the live package here
To get the package installed in your project, follow these simple steps.
- NPM
- Install this NPM package in your exisitng node application
npm install slug-maker
A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id .
You use a slug when you want to refer to an item while preserving the ability to see, at a glance, what the item is, and should be a unique part of a URL.
Project File
const {makeSlug} = require('slug-maker');
console.log(makeSlug("TestING, HoW I$s Th1s L00KiNg?!?!?!?!@#$#@*&"));
Terminal
$ node index.js
Returns
$ testing-how-is-th1s-l00king
Notice that all non-alphanumerical characters have been removed and extra spaces have been handled.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request using this template
Distributed under the MIT License. See LICENSE
for more information.
Jessica Trinh - @ellojesss - jtjessicatrinh@gmail.com
Project Link: https://www.npmjs.com/settings/ellojess/packages