combined-slugify

2.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    297
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    297
  • 2.0.0
    1
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i combined-slugify

Weekly Downloads

299

Version

2.1.0

License

MIT

Last publish

Collaborators

  • amitevski