https://github.com/henrikac/httpcat
A tool to translate http status codes
https://github.com/henrikac/httpcat
crystal crystal-lang crystal-language
Last synced: 4 months ago
JSON representation
A tool to translate http status codes
- Host: GitHub
- URL: https://github.com/henrikac/httpcat
- Owner: henrikac
- License: mit
- Created: 2023-03-21T18:57:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T16:53:29.000Z (about 3 years ago)
- Last Synced: 2025-01-05T23:12:20.457Z (about 1 year ago)
- Topics: crystal, crystal-lang, crystal-language
- Language: Crystal
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# httpcat
httpcat is a fun tool to translate http status codes.
## Installation
Start by cloning the repository and then build the project
```
$ crystal build src/httpcat.cr
```
When the project has been built move the binary into a folder that is in your `$PATH`.
## Usage
#### Open http.cat
```
$ httpcat -o
$ httpcat --open
```
#### Translate status code to text
```
$ httpcat -c 200
200 OK
$ httpcat --code 200
200 OK
```
#### Open status code on http.cat
```
$ httpcat -c 200 -o
$ httpcat -c 200 --open
$ httpcat --code 200 -o
$ httpcat --code 200 --open
```
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Henrik Christensen](https://github.com/henrikac) - creator and maintainer