/urldecoder-go

urlencoder and urldecoder command-line binaries

Primary LanguageGo

URL CLI Encoder & Decoder

Tools to URL decode and URL encode inputs on the commandline.

Requirements

Install

To install latest urldecoder and urlencoder binaries:

go install github.com/fraenky8/urldecoder-go/...@main

Usage

Encode:

echo -n "Hello World!" | urlencode
Hello+World%21

urlencode "Hello World!"
Hello+World%21

urlencode --output out.txt "Hello World!"
cat out.txt
Hello+World%21

urlencode --file out.txt
Hello%2BWorld%2521

Decode:

echo -n "Hello+World%21" | urldecode
Hello World!

urldecode "Hello+World%21"
Hello World!

urldecode --output out.txt "Hello+World%21"
cat out.txt
Hello World!

echo "Hello+World%21" > out.txt
Hello+World%21

urldecode --file out.txt
Hello World!

Usage:

urlencode --help
urldecode --help

Contributing

If you find any issues or missing a feature, feel free to contribute or make suggestions! You can fork the repository and use a feature branch too. Feel free to send me a pull request. The PRs have to come with appropriate unit tests, documentation of the added functionality and updated README with optional examples.

To start developing clone via git or use go's get command to fetch this project.

This project uses go modules so make sure when adding new dependencies to update the go.mod file and the vendor directory:

go mod tidy
go mod vendor

Licensing

None. Do whatever you want with it.