urlize

0.2.2 • Public • Published

urlize

An urlize module for Node.js. Turns a string into a string that can be used more easily as an URL.

  1. Turns everything into lowercase
  • Removes accents: äöå -> aoa
  • Removes other characters than (i.e. keeps the following characters): a-z 0-9 . _ - ( ) /
  • Trims the string

##usage

npm install git://github.com/ile/urlize.git

var urlize = require('urlize').urlize;

urlize(" ääliö älä lyö, ööliä läikkyy");
// aalio-ala-lyo-oolia-laikkyy

##drawbacks

Doesn't handle many foreign characters. Handles some.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    974
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    974
  • 0.2.1
    1,415
  • 0.2.0
    2
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    2

Package Sidebar

Install

npm i urlize

Weekly Downloads

829

Version

0.2.2

License

none

Unpacked Size

9.07 kB

Total Files

3

Last publish

Collaborators

  • ile