Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

urldecode

1.0.1 • Public • Published

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

Install

npm i urldecode

DownloadsWeekly Downloads

11,891

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar