commit | a4bf668c5596056f9d030ff2bed0baa5122d4f70 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Wed Dec 13 16:23:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Wed Dec 13 16:23:03 2017 -0800 |
tree | bcfff1fbe76730048577587e6e0adab3eaf3ea76 | |
parent | 97857edc2149fccebfaa6747f52650f4f8dd0cb1 [diff] | |
parent | 1fd25de9caeaea29126b25fcc7745a3843f8da12 [diff] |
Merge pull request #11 from stevengill/master CB-13055: fixed failing tests in cordova-lib
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}