Module: Urlenc

Defined in:
lib/urlenc.rb,
lib/urlenc/version.rb

Overview

Usage: urlenc [options]

-d, --decode  : Decode/unescape STDIN
-e, --encode  : Encode/escape   STDIN

Defined Under Namespace

Classes: Urlenc

Constant Summary collapse

DESC_DECODE =
<<~DECODE
  Decode/unescape STDIN. %22Sample%20Text%21%22 will be
  converted to "Sample Text!"
DECODE
DESC_ENCODE =
<<~ENCODE
  Encode/escape   STDIN. "Sample Text!" will be converted
  to %22Sample%20Text%21%22
  *default: --encode
ENCODE
DESC_SPLIT =
<<~SPLIT
  Split before Encode/escape. http://sample Text!/ will
  be converted to http://sample%20Text%21/
  *default: --no-split
SPLIT
VERSION =
'1.0.1'
DESCRIPTION =
<<~DESC
  Command line url-encode/decode helper.
  The simplest way to URL encode / decode from STDIN.
DESC
REPOSITORY_URL =
'https://github.com/shinyaohtani/urlenc'