https://github.com/bww/urlencode
A command line tool for manipulating URL-encoded query strings
https://github.com/bww/urlencode
cli golang query-params query-params-parsing url urlencode
Last synced: 3 months ago
JSON representation
A command line tool for manipulating URL-encoded query strings
- Host: GitHub
- URL: https://github.com/bww/urlencode
- Owner: bww
- License: bsd-3-clause
- Created: 2018-08-21T16:12:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T13:37:05.000Z (about 2 years ago)
- Last Synced: 2024-06-20T05:08:03.081Z (about 1 year ago)
- Topics: cli, golang, query-params, query-params-parsing, url, urlencode
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# URL Encode/Decode
A command line tool for manipulating URL-encoded query strings.
### URL-encode standard input
```
$ echo -n '@#$%^&*' | urlenc enc
%40%23%24%25%5E%26%2A
```### URL-decode standard input
```
$ echo -n '%40%23%24%25%5E%26%2A' | urlenc dec
@#$%^&*
```### Display a query string as a list
```
$ echo -n 'foo=bar&fizz=buzz' | urlenc list
fizz: buzz
foo: bar
```### Encode a list as a query string
```
$ urlenc query < fizz: buzz
> foo: bar
> EOF
fizz=buzz&foo=bar
```## Installing
Install via `go get` like so:```
$ go get github.com/bww/urlencode/cmd/urlenc
```## Building
To build the tools:
```
$ make
```To install the tools in `$GOPATH/bin`:
```
$ make install
```