commit | 086ca2999d1e2bd9a08b057e90d973269f094736 | [log] [tgz] |
---|---|---|
author | Audrey So <audreyso@apache.org> | Thu Sep 21 11:45:53 2017 -0700 |
committer | Audrey So <audreyso@apache.org> | Mon Oct 02 09:56:58 2017 -0700 |
tree | 52bdfe015e94a4d50cd687f5ff16db6685ab6cbb | |
parent | 06441bb531e6bddd2f8f2517fb21de2e0ea4c9b3 [diff] |
CB-13303 : setting production flag to default during npm install and test
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}