Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vodolaz095/slugify
NodeJS module to sluggify strings
https://github.com/vodolaz095/slugify
Last synced: about 4 hours ago
JSON representation
NodeJS module to sluggify strings
- Host: GitHub
- URL: https://github.com/vodolaz095/slugify
- Owner: vodolaz095
- License: mit
- Created: 2013-05-21T21:55:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-21T22:51:19.000Z (over 11 years ago)
- Last Synced: 2024-11-06T17:54:15.956Z (10 days ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 testBuild status - [![Build Status](https://travis-ci.org/vodolaz095/slugify.png)](https://travis-ci.org/vodolaz095/slugify)
## Credits
- [Ostroumov Anatolij](https://github.com/vodolaz095)
## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2011-2013 Ostroumov Anatolij <[http://teksi.ru/resume/](http://teksi.ru/resume/)>