Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    cordova-fetchpublic

    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}

    install

    npm i cordova-fetch

    Downloadsweekly downloads

    83,601

    version

    1.3.0

    license

    Apache-2.0

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar