{"id":21707341,"url":"https://github.com/s-leroux/getpro","last_synced_at":"2026-05-20T09:02:17.001Z","repository":{"id":41322144,"uuid":"116314556","full_name":"s-leroux/getpro","owner":"s-leroux","description":"A very simple promise-based npm package to get http/https documents","archived":false,"fork":false,"pushed_at":"2023-02-04T13:47:49.000Z","size":338,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T14:19:45.385Z","etag":null,"topics":["asynchronous","get","http","https","node","promise"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s-leroux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-04T22:38:55.000Z","updated_at":"2022-06-27T22:15:36.000Z","dependencies_parsed_at":"2023-02-18T16:45:40.620Z","dependency_job_id":null,"html_url":"https://github.com/s-leroux/getpro","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/s-leroux/getpro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-leroux%2Fgetpro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-leroux%2Fgetpro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-leroux%2Fgetpro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-leroux%2Fgetpro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-leroux","download_url":"https://codeload.github.com/s-leroux/getpro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-leroux%2Fgetpro/sbom","scorecard":{"id":793550,"data":{"date":"2025-08-11","repo":{"name":"github.com/s-leroux/getpro","commit":"04b8d4a4c36c94637c896d492143750b3b840369"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/s-leroux/getpro/npm-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/s-leroux/getpro/npm-test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/npm-test.yml:16","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T08:16:20.818Z","repository_id":41322144,"created_at":"2025-08-23T08:16:20.819Z","updated_at":"2025-08-23T08:16:20.819Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["asynchronous","get","http","https","node","promise"],"created_at":"2024-11-25T22:17:11.482Z","updated_at":"2026-05-20T09:02:16.974Z","avatar_url":"https://github.com/s-leroux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"getpro\n======\n\nA simple promise-based wrapper arround NodeJS to download files using\nhttp/http.\n\n\n[![Build Status](https://github.com/s-leroux/getpro/actions/workflows/npm-test.yml/badge.svg)](https://github.com/s-leroux/getpro/actions/workflows/npm-test.yml)\n\n## Installation\n\n    npm install --save getpro\n    \n## Description\n\n`getpro` is designed for no-caching asynchronous promise-oriented file download\nover http/https.\n\n\n* promise-oriented\n* very little dependencies\n* follows 3xx redirections\n* reject promise in case of 4xx or 5xx response or error (no synchronous exceptions thrown)\n* supports the _stream_ interface (so you can `.pipe` data as fast as they arrive)\n* supports the _consumer_ interface to obtain a `Promise` that will be resolved\nwhen the next chuck of data arrives or when the stream is exhausted\n\nThe _consumer_ interface integrates nicely with ECMAScript 2017 asynchronous functions (async/await) as well as with bluebird coroutines (see examples below).\n\n## Basic usage\n\n    const gp = require('getpro');\n    \n    // Stream interface\n    const fs = require('fs');\n    \n    gp.get('http://httpbingo.org/encoding/utf8')\n      .then((res) =\u003e {\n        const output = fs.createWriteStream('/tmp/utf8');\n        res.pipe(output);\n      });\n      \n    // Consumer interface (bluebird coroutine)\n    const Promise = require('bluebird');\n    gp.get('http://httpbingo.org/encoding/utf8')\n      .then(Promise.coroutine(function*(res) {\n        let chunk = null;\n\n        while (chunk = yield res.consume()) {\n          console.log(chunk);\n        };\n      }));\n\n      \n    // Consumer interface (ECMAScript 2017 (ECMA-262) async/await)\n    gp.get('http://httpbingo.org/encoding/utf8')\n      .then(async function (res) {\n        let chunk = null;\n\n        while (chunk = await res.consume()) {\n          console.log(chunk);\n        };\n      });\n\n## Advanced usage\n\nThe advanced interface available through the `request` object allows greater control on the request.\nThis is especially usefull for requests with a body (like the POST request):\n\n    const { request } = require('getpro');\n    \n    // Stream interface\n    const fs = require('fs');\n    \n    request.get('http://httpbingo.org/encoding/utf8')\n      .setHeader(\"accept-encoding\", \"deflate\")\n      .then((res) =\u003e {\n        const output = fs.createWriteStream('/tmp/utf8');\n        res.pipe(output);\n      });\n\n    request.post('http://httpbingo.org/post')\n      .json({some: \"data\"})\n      .then((res) =\u003e {\n        const output = fs.createWriteStream('/tmp/out.json');\n        res.pipe(output);\n      });\n\n\n## Node version\nRequires NodeJS \u003e= v12.0\nTested with v12.0 and v14.15\n \n## License \n\n(The MIT License)\n\nCopyright (c) 2018-2022 [Sylvain Leroux](mailto:sylvain@chicoree.fr)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-leroux%2Fgetpro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-leroux%2Fgetpro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-leroux%2Fgetpro/lists"}