slugify2

    0.0.2 • Public • Published

    Slugify

    NodeJS module to sluggify strings. It creates a Human Readable Url from string. Slug is a part of an URL which identifies a page using human-readable keywords, but the special characters are removed.

    Usage

    var slugify=require('slugify');
    console.log(slugify("I'm filling lucky"));
      //=>'im_filling_lucky'
    console.log(slugify("I'm filling lucky!"));
      //=>'im_filling_lucky'
    console.log(slugify("I'm filling lucky?"));
      //=>'im_filling_lucky'
    console.log(slugify("I'm filling lucky!!!"));
      //=>'im_filling_lucky'
    console.log(slugify("I'm filling lucky"));
      //=>'im_filling_lucky'
    console.log(slugify("I'm filling lucky"));
      //=>'im_filling_lucky'
    console.log(slugify("I am filling lucky!!!"));
      //=>'i_am_filling_lucky'
    console.log(slugify("I am filling lucky???"));
      //=>'i_am_filling_lucky'
    console.log(slugify("I am filling lucky111"));
      //=>'i_am_filling_lucky111'
    

    Tests

    Install vows first

    $ npm install vows
    $ npm test
    

    Build status - Build Status

    Credits

    License

    The MIT License

    Copyright (c) 2011-2013 Ostroumov Anatolij <http://teksi.ru/resume/>

    Keywords

    none

    Install

    npm i slugify2

    DownloadsWeekly Downloads

    13

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • nap