Skip to content

dorianmariecom/dorian-json-deep-each

Repository files navigation

dorian-json-deep-each

Run a Ruby snippet for a JSON value and each nested value.

Install

gem install dorian-json-deep-each

Also included in the aggregate gem:

gem install dorian

Usage

json-deep-each [file ...] "ruby code"

Run json-deep-each -h for generated option details and json-deep-each -v for the installed version.

Notes

  • Visits the root first, then arrays and hashes recursively. it is deep-structified before the snippet runs.

Examples

Print every visited value

echo '[1,2,3]' | json-deep-each "p it"

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors