Here are all that depend on the module named "lockfile"
http://registry.npmjs.org/-/_view/dependedUpon?group_level=3&startkey=%5B%22lockfile%22%5D&endkey=%5B%22lockfile%22%2C%7B%7D%5D&skip=0&limit=1000
-
Robert
On Saturday, May 4, 2013 10:37:25 PM UTC+2, Gregg Caines wrote:
>
> I'm actually look
Yes, you can use the "dependedUpon" view in the couchdb.
For example, to find all the packages that depend on "request":
http://isaacs.iriscouch.com/registry/_design/app/_view/dependedUpon?startkey=[%22request%22]&endkey=[%22request%22,{}]&group_level=2
That's what the npmjs.org site uses. Note
I'm actually looking for the opposite... the dependants, not the
dependencies. For a given package x, it's the list of all the packages
that depend on x.
G
On Sat, May 4, 2013 at 1:33 PM, Martin Cooper wrote:
> The simplest way is to grab the package metadata from the registry with
> this URL
The simplest way is to grab the package metadata from the registry with
this URL:
http://registry.npmjs.org//latest
That will get you a JSON version of the same object you see with 'npm view
', at which point you can just pluck out the 'dependencies' object.
--
Martin Cooper
On Sat, May 4, 2
Hey all, does anyone know if npm has an API (or couchdb view) for getting
the list (or just the count) of dependent packages of a given package ? I
suspect it does since npmjs.org has the info.
I know there's an npm mailing list, but it mysteriously won't let me post.
Thanks!
G
--
--
Job