Skip to content

Instantly share code, notes, and snippets.

@vvo

vvo/ysearch.md Secret

Created February 6, 2017 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vvo/4d0ce1cf5103119bc1629e79361a0b29 to your computer and use it in GitHub Desktop.
Save vvo/4d0ce1cf5103119bc1629e79361a0b29 to your computer and use it in GitHub Desktop.
ysearch proposal
Yarn interactive search
Query: babel (typeahead like)
Results (2000):
babel-core v6.5.2 MIT 354K D/L   [DEP] [DEVDEP] [GLOBAL]
babel-loader v4.5.2 MIT 200K D/L [DEP] [DEVDEP] [GLOBAL]
babel-cli v3.4.5 MIT 100K D/L    [DEP] [DEVDEP] [GLOBAL]
babel-loader v4.5.2 MIT 200K D/L [DEP] [DEVDEP] [GLOBAL]
babel-cli v3.4.5 MIT 100K D/L    [DEP] [DEVDEP] [GLOBAL]

Web url: https://yarnpkg.com/search?q=babel
Search usage:
> Press arrow keys to highlight packages or select buttons
> Press `enter` to validate buttons
> Press `i` to show more information on an highlighted package (description, links, owners)
> Press `s` to focus and refine query
> Press `CMD+C` to quit interactive search

Jest did a typeahead experience too, see jestjs/jest#2324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment