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

yyyc514-lookup

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yyyc514-lookup

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Lazy Man's ri (lookup)

Example usage:

  • lookup ActiveRecord::Base#new (returns a single method, since the method name is right)
  • lookup ActiveRecord::Base#destroy (returns two methods, since there's two methods with that name)
  • lookup ActiveRecord::Base#destro (returns three methods, uses methods beginning with "destroy")
  • lookup ActiveRecord::Base#d (tells you to be more specific, because it can't open 35 tabs at once)
  • lookup ActiveRecord::Base (returns a single consant)
  • lookup Acv::Base (returns six constants, because it does a fuzzy match)

Options

It also takes options:

  • -c or --clear will delete the database and update the api again. This can take a minute or two.
  • -t or --text is useful for when you don't want lookup to spam tabs into your browser willy-nilly.

How it finds them

  1. Checks if there's constants/methods with that exact name.
  2. Checks if there's constants/methods with names beginning with that name.
  3. Does a "fuzzy match" splitting the name and getting anything containing those letters in that order.
  4. Opens your browser if you're running a DECENT_OPERATING_SYSTEM (may add support for things other than Mac later on)
  5. ???
  6. Profit

FAQs

Package last updated on 10 Aug 2014

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