Socket
Book a DemoInstallSign in
Socket

recursive-decode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recursive-decode

Recursively decode any encoded string

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Recursive Decode

Hand any string or url which has been encoded any number of times, and receive a single string back which is decoded and ready to use.

Install

npm install recursive-decode

Usage

var recursiveDecode = require('recursive-decode');

var ourCrazyUrl = 'http%25253A%25252F%25252Fw3schools.com%25252Fmy-test.asp%25253Fname%25253Dst%2525C3%2525A5le%252526car%25253Dsaab';
var ourDecodedUrl = recursiveDecode(recursiveDecode); // returns http://w3schools.com/my-test.asp?name=ståle&car=saab

Easy..

Keywords

recursive

FAQs

Package last updated on 21 Jun 2016

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