{"id":27594357,"url":"https://github.com/apache/cordova-fetch","last_synced_at":"2025-05-16T18:04:20.328Z","repository":{"id":14442449,"uuid":"74950509","full_name":"apache/cordova-fetch","owner":"apache","description":"Apache Cordova Fetch Library","archived":false,"fork":false,"pushed_at":"2024-11-19T06:33:20.000Z","size":607,"stargazers_count":27,"open_issues_count":3,"forks_count":28,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-10T17:16:19.747Z","etag":null,"topics":["cordova","hacktoberfest","javascript","mobile","nodejs"],"latest_commit_sha":null,"homepage":"https://cordova.apache.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-28T08:00:09.000Z","updated_at":"2024-11-19T06:33:21.000Z","dependencies_parsed_at":"2024-06-17T18:30:44.684Z","dependency_job_id":"0e7b6f6c-b76c-4336-b72d-706c28358034","html_url":"https://github.com/apache/cordova-fetch","commit_stats":{"total_commits":149,"total_committers":22,"mean_commits":"6.7727272727272725","dds":0.7785234899328859,"last_synced_commit":"12de62fa21509711fc5530c9d4917444ce9c0b80"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/cordova-fetch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582902,"owners_count":22095518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","hacktoberfest","javascript","mobile","nodejs"],"created_at":"2025-04-22T10:30:17.962Z","updated_at":"2025-05-16T18:04:20.280Z","avatar_url":"https://github.com/apache.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n#  KIND, either express or implied.  See the License for the\n# specific language governing permissions and limitations\n# under the License.\n#\n--\u003e\n\n# cordova-fetch\n\n[![NPM](https://nodei.co/npm/cordova-fetch.png)](https://nodei.co/npm/cordova-fetch/)\n\n[![Node CI](https://github.com/apache/cordova-fetch/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/apache/cordova-fetch/actions?query=branch%3Amaster)\n\nThis package can be used to install and uninstall Node.js packages using npm.\n\n## Usage\n\n### `fetch`\n\nInstalls a module from:\n\n* `npm` registry\n* `git` url\n* `tarball`\n  * url\n  * file on local file system\n* `folder` path on local system\n\nReturns a `Promise` resolving to the absolute path of the installed package.\n\n```js\nconst fetch = require('cordova-fetch');\n\nfetch(spec, dest, opts).then(pathToInstalledPackage =\u003e {\n    // Do something\n});\n```\n\n#### Fetch Parameters\n\nParameter | Description\n-|-\n`spec` | A spec for the package to be installed (anything supported by `npm install`)\n`dest` | Location where to install the package\n`opts` | Additional options (optional)\n\n##### Fetch Options\n\nOption | Default | Description\n-|-|-\n`save` | `false` | Adds the package as dependency to `package.json` iff `true`\n\n### `uninstall`\n\nUninstalls a package from the given directory. Returns a `Promise` that resolves when removal has finished.\n\n```js\nconst { uninstall } = require('cordova-fetch');\n\nuninstall(packageName, dest, opts).then(() =\u003e {\n    // Do something\n});\n```\n\n#### Uninstall Parameters\n\nParameter | Description\n-|-\n`packageName` | Name of the package to be uninstalled\n`dest` | Location from where to uninstall the package\n`opts` | An Object with additional options\n\n##### Uninstall Options\n\nOption | Default | Description\n-|-|-\n`save` | `false` | Removes dependency from `package.json` iff `true`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcordova-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fcordova-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcordova-fetch/lists"}