Need private packages and team management tools?Check out npm Teams »

@nazreinkaram/urltools

1.0.1 • Public • Published

Fun with URLs

Installation via NPM

npm i @nazreinkaram/urltools

Usage

const urltools = require('@nazreinkaram/urltools')
 
urltools.encodeURL('http://example.com/path/to/destination')
 
// returns http%3A%2F%2Fexample.com%2Fpath%2Fto%2Fdestination
 
urltools.decodeURL('http%3A%2F%2Fexample.com%2Fpath%2Fto%2Fdestination')
 
// returns http://example.com/path/to/destination

Install

npm i @nazreinkaram/urltools

DownloadsWeekly Downloads

5

Version

1.0.1

License

ISC

Unpacked Size

1.39 kB

Total Files

3

Last publish

Collaborators

  • avatar