JSPM

cordova-fetch

1.2.2-nightly.2017.11.30.95b92c48
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43400
  • Score
    100M100P100Q170879F
  • License Apache-2.0

Apache Cordova fetch module. Fetches from git and npm.

Package Exports

  • cordova-fetch

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cordova-fetch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build status Build Status NPM

cordova-fetch

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.

Usage:

Fetching:

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}

Removing:

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}