Npm.depends

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:

  1. Version numbers in string form
  2. Http(s) URLs to a git commit by SHA.
  3. 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"
});
doc_Meteor
2016-05-29 17:22:55
Comments
Leave a Comment

Please login to continue.