Skip to content

saaskilahtij/urlendecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

urlendecode

Take the pain away from URL encoding and decoding. Simple and elegant.

Installation

Oneliner for lazy people (me):

git clone https://github.com/saaskilahtij/urlendecode.git && cd urlendecode && sudo chmod +x urlencode.sh && sudo chmod +x urldecode.sh && sudo mv urlencode.sh /usr/local/bin/urlencode && sudo mv urldecode.sh /usr/local/bin/urldecode

Install required packages:

sudo apt install jq

Then clone the repository:

git clone https://github.com/saaskilahtij/urlendecode.git && cd urlendecode

Make them executable:

sudo chmod +x urlencode.sh && sudo chmod +x urldecode.sh

Move them to /usr/local/bin:

sudo mv urlencode.sh /usr/local/bin/urlencode && sudo mv urldecode.sh /usr/local/bin/urldecode

Encode:

$ urlencode 'https://example.com?arg={[]}+$'
https%3A%2F%2Fexample.com%3Farg%3D%7B%5B%5D%7D%2B%24

Decode:

$ urldecode 'https%3A%2F%2Fexample.com%3Farg%3D%7B%5B%5D%7D%2B%24'
https://example.com?arg={[]}+$

Clean the evidence:

rm -rf urlendecode

About

Take the pain away from URL encoding and decoding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages