npm.io
1.0.1 • Published 11 years ago

urldecode

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
3

urldecode

NPM Version NPM Downloads

urldecode adds try-catch on decodeURLComponent, and return -1 when failing.

Usage

var decode = require('urldecode')
console.log(decode('http://127.0.0.1:3333/Become%20Efficient%20or%20Die.md'));
// http://127.0.0.1:3333/Become Efficient or Die.md

LICENCE

MIT LICENCE

Keywords