commit | cd24dc0ef5c7757081ffa2875683bad12434c0a7 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Wed Jun 07 17:34:05 2017 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Wed Jun 07 17:34:05 2017 -0700 |
tree | be23a79a13926e6e11ee3915ad6b584c7a1d0e51 | |
parent | 7cd624c548dc090f18bf9bd5885473e448fcda44 [diff] |
CB-12785: added test for supporting git+ssh npm install syntax
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}