项目作者: bww

项目描述 :
A command line tool for manipulating URL-encoded query strings
高级语言: Go
项目地址: git://github.com/bww/urlencode.git
创建时间: 2018-08-21T16:12:59Z
项目社区:https://github.com/bww/urlencode

开源协议:BSD 3-Clause "New" or "Revised" License

下载


URL Encode/Decode

A command line tool for manipulating URL-encoded query strings.

URL-encode standard input

  1. $ echo -n '@#$%^&*' | urlenc enc
  2. %40%23%24%25%5E%26%2A

URL-decode standard input

  1. $ echo -n '%40%23%24%25%5E%26%2A' | urlenc dec
  2. @#$%^&*

Display a query string as a list

  1. $ echo -n 'foo=bar&fizz=buzz' | urlenc list
  2. fizz: buzz
  3. foo: bar

Encode a list as a query string

  1. $ urlenc query <<EOF
  2. > fizz: buzz
  3. > foo: bar
  4. > EOF
  5. fizz=buzz&foo=bar

Installing

Install via go get like so:

  1. $ go get github.com/bww/urlencode/cmd/urlenc

Building

To build the tools:

  1. $ make

To install the tools in $GOPATH/bin:

  1. $ make install