https://github.com/sj14/urlenc
🔗 A simple tool to convert an URL-encoded or URL-decoded input string.
https://github.com/sj14/urlenc
Last synced: 9 months ago
JSON representation
🔗 A simple tool to convert an URL-encoded or URL-decoded input string.
- Host: GitHub
- URL: https://github.com/sj14/urlenc
- Owner: sj14
- License: mit
- Created: 2022-02-24T15:45:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T22:07:25.000Z (almost 4 years ago)
- Last Synced: 2025-04-02T04:50:31.630Z (10 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/sj14/urlenc/releases) page.
### Homebrew
Using the [Homebrew](https://brew.sh/) package manager for macOS:
```console
brew install sj14/tap/urlenc
```
### Manually
It's also possible to install the current development snapshot with `go install`:
```console
go install github.com/sj14/urlenc
```
## Usage
```text
Usage of urlenc:
-decode
perform decoding instead of encoding of the given input
```
## Examples
### Encode
```
$ urlenc info@example.com
info%40example.com
```
```
$ echo info@example.com | urlenc
info%40example.com
```
### Decode
```
$ urlenc -decode info%40example.com
info@example.com
```
```
$ echo info%40example.com | urlenc
info@example.com
```
## FAQ
Q: Are you ashamed of yourself for writing such a small tool in Go which takes so much disk space?
A: Yes.