0.0.7 • Published 10 years ago

slugifyjs v0.0.7

Weekly downloads
238
License
MIT
Repository
github
Last release
10 years ago

slugify.js

Javascript slugify routine, handling diacritics / accents.

Includes an English - Diacritic map.

Extensible, so you can build your own diacritic map (locale).

Examples

Using the English locale

Slugify.parse('Iñtërnâtiônàlizætiøn');    // internationalizaetion
  
Slugify.parse('C’est Déjà L’été');        // cest-deja-lete
  
Slugify.parse('Україна');                 // y
  
Slugify.parse('東西放在這裡');              // 東

Slugify.parse('kääntää jotain minulle');  // kaantaa-jotain-minulle

Using NodeJS

var Slugify = require('slugifyjs').fromLocale('en');

Slugify.parse('slugify this for me please');		// slugify-this-for-me-please

NPM

Install with npm: npm install slugifyjs

Bower

Install with bower: bower install slugifyjs

Contributing

Use grunt dev to test your changes with a version that is not uglified.

Use grunt to compress an uglified file after you make changes.

Please do not submit a PR with a compiled file for dev.

Tests

Run npm test to execute mocha tests.

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago