atmosphere-package-info

2.0.0 • Public • Published

atmospherePackageInfo

Get information associated with one or more Meteor Atmosphere packages

Author: Matthew Hasbach
License: MIT
Copyright: Matthew Hasbach 2016

Param Type Description
packages string | Array.<string> One or more Meteor Atmosphere package names
cb atmospherePackageInfoCallback A callback to be executed after package information is collected

Example

atmospherePackageInfo(['stevezhu:lodash', 'mjhasbach:some-invalid-pkg'], function(err, packages) {
    if (err) { return console.error(err); }
 
    packages.forEach(function(pkg) {
        if (pkg instanceof Error) {
            //Package not found on Atmosphere
            console.error(pkg);
        }
        else {
            console.log(pkg.latestVersion.git);
        }
    });
});

atmospherePackageInfo~atmospherePackageInfoCallback : function

The atmospherePackageInfo callback

Kind: inner typedef of atmospherePackageInfo

Param Type Description
err Object | null An Error object if an error occurred
packages Object.<Object> Information about one or more Meteor Atmosphere packages. packages['packageName'] will be an Error object if that package was not found on Atmosphere.

Package Sidebar

Install

npm i atmosphere-package-info

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • mjhasbach