How do I search for packages using yarn?

labyrinth picture labyrinth · Jan 27, 2017 · Viewed 21k times · Source

How do I search for packages with yarn? I want to get a list of results that have the search term in the name of the package as well as in descriptions (similar to how various utilities work like npm search, apropos, apt-cache search).

I tried yarn info <pkg>, but this gave a bunch of json data that was limited to just that package.

Using yarn help and duckduckgo was educational, but still didn't answer how to do this.

Answer

Kasiriveni picture Kasiriveni · Mar 21, 2017

there is no command for showing the tabular data format of package information

if you what more information about the packages you can try below commands you will get more information

yarn info package

yarn info package  --json

yarn info package@version

yarn info package description

yarn info package time

yarn info package readme