2.1.0 • Published 8 years ago

combined-slugify v2.1.0

Weekly downloads
318
License
MIT
Repository
github
Last release
8 years ago

Combined Slugify

This module creates a slug by utilizing 2 other libraries.

Install

npm install combined-slugify

Usage

Example

var slugify = require('combined-slugify');
slugify('i ♥ unicode');
// > i-love-unicode

slugify('你好,世界');
// > ni-hao-shi-jie

Node slug supports multiple configurations options which you can pass into combined-slugify. see node-slug for details

Example

var slugify = require('combined-slugify', {lower: false});
slugify('Haus & Garten');
// > Haus-and-Garten

slugify('Haus & Garten', {lower: true});
// > haus-and-garten

Changelog

2.0.1

  • add lower: true as default param

2.0.0

  • default mode for node-slug is pretty
  • added support to specify node-slug options

1.x.x

  • default mode for node-slug is rfc3986

Running Tests

npm test
2.1.0

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago