Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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'
```