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

https://github.com/d-oliveros/slug-factory

Unique Slug Generator for node.js.
https://github.com/d-oliveros/slug-factory

Last synced: about 2 months ago
JSON representation

Unique Slug Generator for node.js.

Awesome Lists containing this project

README

        

# slug-factory
Unique Slug Generator for node.js.

## Installation

```
npm install slug-factory
```

## Usage

```js
var slugFactory = require('slug-factory');
var exists = 4;

function iterator(path, cb) {
exists--;
cb(null, exists);
}

slugFactory('Slugen ips³ón.', iterator, function(err, slug) {
console.log(slug); // slugen-ipson-3
});

```

#### Test

```
mocha
```

Cheers.