Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dekz/prettyp
https://github.com/dekz/prettyp
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dekz/prettyp
- Owner: dekz
- License: mit
- Created: 2014-09-20T10:13:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-20T13:09:10.000Z (over 10 years ago)
- Last Synced: 2024-12-21T19:47:35.959Z (about 1 month ago)
- Language: Ruby
- Size: 512 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Prettyp
One language formatter tool to rule them all.
## Why?
I didn't like having to remember:```
pbpaste | xmllint --format -
cat log.json | python -m json.tool
```Why not just have a tool to do them all.
## Installation
Install it yourself as:
$ gem install prettyp
## Usage
```
$ echo '{"foo": "lorem", "bar": "ipsum"}' | prettyp format
{
"bar": "ipsum",
"foo": "lorem"
}
``````
$ pbpaste | prettyp formatTove
Jani
Reminder
Don't forget me this weekend!```
```
$ prettyp format --file test.json
{
"bar": "ipsum",
"foo": "lorem"
}
```### Alfred
Ensure bash/zsh profile is loaded. Copies from clipboard and back to clipboard
```
source ~/.zshrc
pbpaste | prettyp format | pbcopy
```## Contributing
1. Fork it ( https://github.com/dekz/prettyp/fork )
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## TODO support ignoring the language classifier