{"repo":"ceritium/flatito","free":true,"listed":false,"github":"https://github.com/ceritium/flatito","clone":"git clone https://github.com/ceritium/flatito.git","description":"Grep for YAML and JSON files","language":"Ruby","stars":110,"topics":["grep","json","yaml","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"Flatito: Grep for YAML and JSON files A kind of grep for YAML and JSON files. It allows you to search by key or value and get the matching entries with their line numbers. Meaning Esperanto: singular past nominal passive participle of flati ('to flatter'). Installation Install the gem and add to the application's Gemfile by executing: $ bundle add flatito If bundler is not being used to manage dependencies, install the gem by executing: $ gem install flatito Nixpkgs package It is also available as nixpkgs thanks to @Rucadi $ nix run nixpkgs#flatito Usage Searches are case-insensitive by default. Use -s to force exact case matching. Both -k and -c support regular expressions and can be combined: Searching inside a git diff When the input piped through stdin is a unified diff (e.g. the output of git diff ), flatito reports only the YAML/JSON entries whose lines were added ( + ) or removed ( - ) by the diff. Each result is prefixed accordingly. When the diff includes git index hashes (the default for git diff ), flatito reads the original content via git cat-file so nested keys retain their parent context. If those blobs are unavailable, it falls back to reconstructing the changed regions from the diff hunks alone. Development After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run bundle exec","default_branch":null,"files":null,"tree":[],"storefront":"/r/ceritium","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ceritium/flatito/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}