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

urlize

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urlize

Convert strings to be used as urls

0.2.2
latest
Source
npmnpm
Version published
Weekly downloads
2.1K
22.49%
Maintainers
1
Weekly downloads
 
Created
Source

urlize

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

  • 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.

FAQs

Package last updated on 07 Dec 2022

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