Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanburnette/slugify
Convert a string to a slug. Inspired by WordPress slugs.
https://github.com/ryanburnette/slugify
Last synced: 22 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T01:20:47.000Z (almost 5 years ago)
- Last Synced: 2024-04-26T15:22:31.216Z (10 months 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)
[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/ryanburnette/slugify)
[![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](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'
```