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:

Git URL example:

1
2
3
4
Npm.depends({
  moment: "2.8.3",
  async: "git+https://github.com/caolan/async#master"
});
doc_Meteor
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.