You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

slugify2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slugify2

Module to create Human readable urls from string

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
20
81.82%
Maintainers
1
Weekly downloads
 
Created
Source

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

slugify

FAQs

Package last updated on 21 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts