Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/segment-boneyard/slug

The slugging function we use for Segment projects, usernames, etc.
https://github.com/segment-boneyard/slug

Last synced: about 5 hours ago
JSON representation

The slugging function we use for Segment projects, usernames, etc.

Awesome Lists containing this project

README

        

# slug

The slugging function we use for Segment.io projects, usernames, etc.

## Installation

$ component install segmentio/slug

## Example

```js
var slug = require('slug');

slug('Pets.com'); // "pets.com"
slug('American Airlines'); // "american-airlines"
slug('@mention'); // "mention"
```

## API

### slug(string)
Convert the given `string` to a slug.

## License

MIT