package-dependents
Get the npm dependents of a given package.
:cloud: Installation
$ npm i --save package-dependents
:clipboard: Example
var PackageDependents = require("package-dependents");
PackageDependents("is-there", function (err, packages) {
packages.forEach(function (c) {
console.log(c.name + (c.author && c.author.name ? " by " + c.author.name : ""));
});
});
:memo: Documentation
PackageDependents(name, version, callback)
Get the dependents of a given packages. The callback function is called with
an error and an array of objects.
Params
- String
name
: The package name. - String
version
: The package version (default: "latest"
). - Function
callback
: The callback function.
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.
:moneybag: Donations
Another way to support the development of my open-source modules is
to set up a recurring donation, via Patreon. :rocket:
PayPal donations are appreciated too! Each dollar helps.
Thanks! :heart:
:scroll: License
MIT © Ionică Bizău