commit | 64287eeac998a94ebf1d032700db05ae0bb891d4 | [log] [tgz] |
---|---|---|
author | Audrey So <audreyso@apache.org> | Tue Oct 03 13:54:46 2017 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Tue Oct 03 18:39:36 2017 -0700 |
tree | 92da473f1e5afecbf19d684c02e929cbfcdeec8a | |
parent | b0fce54a3bcab52c09562a29ebbe2276f82ab51d [diff] |
CB-13303 : updating opts.production This closes #6
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}