urlenc
A simple tool to convert an URL-encoded or URL-decoded input string.
Installation
Precompiled Binaries
Binaries are available for all major platforms. See the releases page.
Homebrew
Using the Homebrew package manager for macOS:
brew install sj14/tap/urlenc
Manually
It's also possible to install the current development snapshot with go install
:
go install github.com/sj14/urlenc
Usage
Usage of urlenc:
-decode
perform decoding instead of encoding of the given input
Examples
Encode
$ urlenc [email protected]
info%40example.com
$ echo [email protected] | urlenc
info%40example.com
Decode
$ urlenc -decode info%40example.com
[email protected]
$ echo info%40example.com | urlenc
[email protected]
FAQ
Q: Are you ashamed of yourself for writing such a small tool in Go which takes so much disk space?
A: Yes.