2.0.0 • Published 8 years ago

atmosphere-package-info v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

atmospherePackageInfo

Get information associated with one or more Meteor Atmosphere packages

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

ParamTypeDescription
packagesstring | Array.<string>One or more Meteor Atmosphere package names
cbatmospherePackageInfoCallbackA 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

ParamTypeDescription
errObject | nullAn Error object if an error occurred
packagesObject.<Object>Information about one or more Meteor Atmosphere packages. packages'packageName' will be an Error object if that package was not found on Atmosphere.