Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

krackle

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krackle

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Krackle

CLI for querying and flattening YAML data.

Installation

Add this line to your application's Gemfile:

gem 'krackle'

And then execute:

$ bundle

Or install it yourself as:

$ gem install krackle

Usage

You have a YAML file and want to pull a key or many out:

first_name: Brad
last_name: Gessler
location:
  state: CA
  city: San Francisco
  tax_brackets:
    - high
    - really high
    - my eyes are bleeding high
projects:
  - name: Firehose.io
    url: https://github.com/firehose/gem
    contributors:
      - Brad Gessler
      - Zach Zolton
  - name: Krackle
    url: https://github.com/bradgessler/krackle
    contributors:
      - Brad Gessler
      - Ronald McDonald
      - first_name: Billy
        last_name: Goat
  - name: Nada

What do you do? Krackle it!

$ curl https://raw.githubusercontent.com/bradgessler/krackle/master/spec/fixtures/profile.yml > profile.yml
$ cat profile.yml | krackle first_name
Brad
$ cat profile.yml | krackle location.state
CA
$ cat profile.yml | krackle location.tax_brackets[1]
really high
$ cat profile.yml | krackle projects[].contributors[0]
Brad Gessler
Brad Gessler
$ cat profile.yml | krackle projects[0].contributors[]
Brad Gessler
Zach Zolton
$ cat profile.yml | krackle projects[0].contributors[0]
Brad Gessler

Now you can query deep into YAML without cracking open a Ruby session.

Contributing

  1. Fork it ( https://github.com/bradgessler/krackle/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

FAQs

Package last updated on 09 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc