commit | 2932d1890f55c449f20aeba87abb30af266bc8d4 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Tue Feb 20 11:07:48 2018 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 20 11:07:48 2018 -0800 |
tree | f56f778c9f7bc45dacdd6a8a51b0363a8616d972 | |
parent | f83d82224377f2d788259d044e03bc670430e312 [diff] | |
parent | 234a45f5e3c71808cda8647f737b8692df37303f [diff] |
Merge pull request #13 from devtobo/CB-13503-squashed CB-13503 fix trimID bug when using file:path/to/plugin
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}