Skip to content

mjhasbach/atmosphere-package-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Get information associated with one or more Meteor Atmosphere packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published