component/search-api — pull request #11 by timoxley (2012-11-11 05:18:35+00:00)
Title: List dependents of a package.

It's useful to see what depends on a particular package:

* Aids in component discovery.
* Which in turn should help prevent components with duplicate functionality popping up
* Shows practical 'usage examples'
* Shows where work needs to be done (e.g. number of dependents on `jquery`)

Whether/how you want to add this to the human readable `component-search` output is up to you, perhaps use a flag like `--show-dependents`.

## Examples
(Manually omitted package details other than name and dependents)

```json
[{
"name": "notification",
"dependents": [(2)
"component/progress-notification",
"component/confirmation-notification"
]
},
{
"name": "stream",
"dependents": [(6)
"juliangruber/shoe",
"juliangruber/sorta",
"juliangruber/fwd",
"juliangruber/through",
"juliangruber/duplexer",
"juliangruber/min-wait"
]
},
{
"name": "jquery",
"dependents": [(28)
"btknorr/davis.js",
"component/progress-notification",
"component/calendar",
"component/color-picker",
"component/confirmation-popover",
"component/confirmation-notification",
"component/dialog",
"component/tip",
"component/pager",
"component/popover",
"component/notification",
"component/dropdown",
"component/menu",
"colinf/listbox-menu",
"colinf/datepicker",
"component/overlay",
"component/confirmation",
"RetroFOX/buttonset",
"matthewmueller/list",
"cbou/jquery-mobile",
"retrofox/datatable",
"btknorr/bootbox",
"pazguille/editable",
"matthewmueller/events",
"btknorr/bootstrap",
"timoxley/backbone-view",
"ember-components/ember",
"ember-components/data"
]
},
{
"name": "classes",
"dependents": [(14)
"component/dropdown",
"component/more",
"component/dropload",
"RetroFOX/buttonset",
"ForbesLindesay/booting-sub-nav",
"tomerdmnt/carousel",
"tomerdmnt/carousel-slide",
"tomerdmnt/offcanvas",
"matthewmueller/autocomplete",
"component/dom",
"component/sketch",
"component/reactive",
"component/clipboard-dom",
"timoxley/element-selector"
]
}]
// ETC
```