11[ ![ Build Status] ( https://travis-ci.org/chclaus/dt.svg?branch=master )] ( https://travis-ci.org/chclaus/dt )
22[ ![ Go Report] ( https://goreportcard.com/badge/github.com/chclaus/dt )] ( https://goreportcard.com/report/github.com/chclaus/dt )
33
4- # Intro
4+ # dt - the dev toolbelt
5+
56The dev toolbelt is a fast and flexible tool to handle common use
67cases of your daily work. Use cases you generally use some online
78tools.
89
9- # Table of Contents
10+ ## Table of Contents
1011
1112- [ Example] ( #example )
13+ - [ Installation] ( #installation )
1214- [ Commands] ( #commands )
1315 * [ URI] ( #uri-command )
1416 * [ Base64] ( #base64-command )
@@ -22,33 +24,61 @@ tools.
2224- [ License] ( #license )
2325
2426# Example
25- Usage:
26- dt [command]
27+ Usage:
28+ dt [command]
29+
30+ Available Commands:
31+ base64 Encodes or decodes a string to it's base64 representation
32+ date Basic date operations
33+ hash Hashes an arbitrary input with different hash algorithms
34+ help Help about any command
35+ html Escapes a html string and vice versa
36+ jwt Allows decoding of a jwt
37+ server Starts a simple web server to serve static content
38+ random Generates random numbers and strings
39+ uri Encodes or decodes an URI
40+ version Prints the current version of the dt
41+
42+ Flags:
43+ -h, --help help for dt
44+
45+ Use "dt [command] --help" for more information about a command.
46+
47+ ## Installation
48+ If you've go installed and your ` $GOPATH ` is set, you can easily install
49+ dt with:
2750
28- Available Commands:
29- base64 Encodes or decodes a string to it's base64 representation
30- date Basic date operations
31- hash Hashes an arbitrary input with different hash algorithms
32- help Help about any command
33- html Escapes a html string and vice versa
34- jwt Allows decoding of a jwt
35- server Starts a simple web server to serve static content
36- random Generates random numbers and strings
37- uri Encodes or decodes an URI
38- version Prints the current version of the dt
51+ go get github.com/chclaus/dt
3952
40- Flags:
41- -h, --help help for dt
53+ ### Install via Homebrew
4254
43- Use "dt [command] --help" for more information about a command.
55+ brew tap chclaus/dt [email protected] :chclaus/dt.git 56+ brew install dt
4457
45- # Commands
58+ ### Build
59+ To build the project you can clone the repository with...
60+
61+ git clone [email protected] :chclaus/dt 62+
63+ ... and build and install the binary with
4664
47- ## URI command
65+ cd dt && go install
66+
67+ ### Build with Docker
68+ To build the repository with docker, do the following:
69+
70+ git clone [email protected] :chclaus/dt 71+ cd dt
72+ docker build -t dt .
73+ docker run --rm dt version
74+
75+ ## Commands
76+
77+ ### URI command
4878- Encodes an URI to a safe representation
4979- Decodes an already encoded URI
5080
51- ## Base64 command
81+ ### Base64 command
5282- Encodes a string to it's base64 representation
5383- Decodes a base64 string to it's plain representation
5484
@@ -58,7 +88,7 @@ The base64 command can be used with different encodings:
5888- URL, follows the alternative RFC 4648
5989- URL Raw, follows the alternative RFC 4648 but with without padding
6090
61- ## Hash command
91+ ### Hash command
6292Returns the hash representation of an input in different hash formats:
6393- md5
6494- sha1
@@ -68,65 +98,41 @@ Returns the hash representation of an input in different hash formats:
6898- sha512
6999- bcrypt
70100
71- ## JWT command
101+ ### JWT command
72102Decodes a jwt and pretty prints the resulting json.
73103
74104Further TODOs:
75105- Signature validation
76106- JWT creation
77107
78- ## Random command
108+ ### Random command
79109Generates random strings and numbers. Currently supported functions are:
80110- Generates a random string, based on an alphabet with a specific length.
81111- Generates a random string with alphanumeric letters.
82112- Generates a random string with a alphanumeric and special characters.
83113- Generates random numbers with a specific length.
84114
85- ## Date command
115+ ### Date command
86116Date conversions:
87117- time millis to RFC 3339
88118- time nanos to RFC 3339
89119- RFC 3339 to time millis
90120
91- ## Regex command
121+ ### Regex command
92122TODO
93123
94- ## HTML command
124+ ### HTML command
95125Escapes and unescapes HTML
96126- transforms a string to an escaped html sequence
97127- reads a file and prints an escaped html sequence
98128- unescapes an escaped html sequence to it's raw representation
99129
100- ## Server
130+ ### Server
101131Starts a simple web server to serve static content. You can specify
102132hostname and port and must set a folder to serve.
103133
104134
105- # Get dt
106- ## Install
107- If you've go installed and your ` $GOPATH ` is set, you can easily install
108- dt with:
109-
110- go get github.com/chclaus/dt
111-
112- ## Build
113- To build the project you can clone the repository with...
114-
115- git clone [email protected] :chclaus/dt 116-
117- ... and build and install the binary with
118-
119- cd dt && go install
120-
121- ## Build with Docker
122- To build the repository with docker, do the following:
123-
124- git clone [email protected] :chclaus/dt 125- cd dt
126- docker build -t dt .
127- docker run --rm dt version
128-
129- # Contributing
135+ ## Contributing
130136Everyone is welcome to create pull requests for this project. If you're
131137new to github, take a look [ here] ( https://help.github.com/categories/collaborating-with-issues-and-pull-requests/ )
132138to get an idea of it.
@@ -135,5 +141,5 @@ If you've got an idea of a function that should find it's way into this
135141project, but you won't implement it by yourself, please create a new
136142issue.
137143
138- # License
144+ ## License
139145dt (dev-toolbelt) is released under the MIT license. See [ LICENSE.txt] ( LICENSE.txt )
0 commit comments