https://github.com/ryanburnette/slugify
Convert a string to a slug. Inspired by WordPress slugs.
https://github.com/ryanburnette/slugify
Last synced: 4 months ago
JSON representation
Convert a string to a slug. Inspired by WordPress slugs.
- Host: GitHub
- URL: https://github.com/ryanburnette/slugify
- Owner: ryanburnette
- Created: 2019-03-02T22:42:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T01:20:47.000Z (about 5 years ago)
- Last Synced: 2024-04-26T15:22:31.216Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# [slugify](https://github.com/ryanburnette/slugify)
[](https://github.com/ryanburnette/slugify)
[](https://www.npmjs.com/package/@ryanburnette/slugify)Convert a string to a slug. Inspired by WordPress slugs.
Works in Browser or Node.js. Works by itself or with package managers.
## Usage
```javascript
var slugify = require('@ryanburnette/slugify');
console.log(slugify('60% of the time, it works every time'));
// '60-of-the-time-it-works-every-time'
```