commit | 8a2021c48ca77e7999fc88c23355ab19d7100ebb | [log] [tgz] |
---|---|---|
author | Nikita Matrosov <v-nimatr@microsoft.com> | Mon Jun 05 10:48:38 2017 +0300 |
committer | Steve Gill <stevengill97@gmail.com> | Mon Jun 05 11:37:32 2017 -0700 |
tree | b428ac7c326608640fbad2020eb0a6dd2fb8431e | |
parent | 0cc50c21a563d58728fa4418b65e39e82edd3b95 [diff] |
CB-12786: Improve logic for searching plugin id in case of module already exists in node_modules This closes #555
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}