package.js
Npm.depends(dependencies)
Specify which NPM packages your Meteor package depends on.
Arguments
- dependencies Object
-
An object where the keys are package names and the values are one of:
- Version numbers in string form
- Http(s) URLs to a git commit by SHA.
- Git URLs in the format described here
Https URL example:
Npm.depends({ moment: "2.8.3", async: "https://github.com/caolan/async/archive/71fa2638973dafd8761fa5457c472a312cc820fe.tar.gz" });
Git URL example:
Npm.depends({ moment: "2.8.3", async: "git+https://github.com/caolan/async#master" });
Please login to continue.