commit | ad760bad7a9ad28f6fe82746b83c1efc896f4b94 | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Tue Jun 05 09:19:24 2018 +0200 |
committer | Darryl Pogue <dvpdiner2@gmail.com> | Tue Jun 05 10:07:36 2018 -0700 |
tree | a518d1d9eb0b8dfb957725dce761d18c40ad7239 | |
parent | b49a0ee45be3a065e0d4ef233a67235ee017bae3 [diff] |
Fail test if promise unexpectedly resolves
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}