commit | 0cc50c21a563d58728fa4418b65e39e82edd3b95 | [log] [tgz] |
---|---|---|
author | Audrey So <audreyso@apache.org> | Fri Jun 02 15:00:01 2017 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Fri Jun 02 15:54:21 2017 -0700 |
tree | d51314e1f3672c456708fc8e8f5e439b55ff5843 | |
parent | 0352f8c8a47912144ae5380a72d0847cb51f4531 [diff] |
CB-12762 : updated common, fetch, and serve pkgJson to point pkgJson repo items to github mirrors This closes #560
This module is used for fetching modules from npm and gitURLs. It fetches the modules via npm install
. It can also npm uninstall
modules from a project.
var fetch = require('cordova-fetch'); fetch(spec, dest, opts);
spec
can be a string containg a npm packageID
or a git URL
. dest
is string of the directory location you wish to npm install
these modules. opts
is an Object of options cordova fetch handles. Currently, fetch only support the save
option. eg. {'save':true}
var npmUninstall = require('cordova-fetch').uninstall; npmUninstall(spec, dest, opts);
spec
can be a string containg a npm packageID
. dest
is string of the directory location you wish to npm uninstall
these modules. opts
is an Object of options cordova fetch handles. Currently, fetch only support the save
option. eg. {'save':true}