{"id":21297487,"url":"https://github.com/fvdm/nodejs-requestbin","last_synced_at":"2025-09-07T15:41:05.452Z","repository":{"id":6361416,"uuid":"7598542","full_name":"fvdm/nodejs-requestbin","owner":"fvdm","description":"RequestBin module for node.js","archived":false,"fork":false,"pushed_at":"2021-07-19T10:17:12.000Z","size":76,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-07-30T19:34:29.737Z","etag":null,"topics":["api-client","debug","nodejs","requestbin","unlicense"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/requestbin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fvdm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-14T04:43:09.000Z","updated_at":"2021-07-19T10:17:13.000Z","dependencies_parsed_at":"2022-07-31T02:38:18.116Z","dependency_job_id":null,"html_url":"https://github.com/fvdm/nodejs-requestbin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fvdm/nodejs-requestbin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvdm%2Fnodejs-requestbin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvdm%2Fnodejs-requestbin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvdm%2Fnodejs-requestbin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvdm%2Fnodejs-requestbin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvdm","download_url":"https://codeload.github.com/fvdm/nodejs-requestbin/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvdm%2Fnodejs-requestbin/sbom","scorecard":{"id":415128,"data":{"date":"2025-08-11","repo":{"name":"github.com/fvdm/nodejs-requestbin","commit":"fce1170f14777a53e3d856c708a74361acfd643d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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: UNLICENSE:0","Info: FSF or OSI recognized license: The Unlicense: UNLICENSE: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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/fvdm/.github/SECURITY.md:1","Info: Found linked content: github.com/fvdm/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/fvdm/.github/SECURITY.md:1","Info: Found text in security policy: github.com/fvdm/.github/SECURITY.md:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:38:01.548Z","repository_id":6361416,"created_at":"2025-08-18T23:38:01.548Z","updated_at":"2025-08-18T23:38:01.548Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273257755,"owners_count":25073531,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-client","debug","nodejs","requestbin","unlicense"],"created_at":"2024-11-21T14:37:42.406Z","updated_at":"2025-09-07T15:41:05.394Z","avatar_url":"https://github.com/fvdm.png","language":"JavaScript","readme":"requestbin\n==========\n\n[RequestBin](http://requestb.in/) API methods for Node.js\n\n[![npm](https://img.shields.io/npm/v/requestbin.svg?maxAge=3600)](https://github.com/fvdm/nodejs-requestbin/blob/master/CHANGELOG.md)\n[![Build Status](https://travis-ci.org/fvdm/nodejs-requestbin.svg?branch=master)](https://travis-ci.org/fvdm/nodejs-requestbin)\n[![Coverage Status](https://coveralls.io/repos/github/fvdm/nodejs-requestbin/badge.svg?branch=master)](https://coveralls.io/github/fvdm/nodejs-requestbin?branch=master)\n[![Dependencies](https://www.bithound.io/github/fvdm/nodejs-requestbin/badges/dependencies.svg)](https://www.bithound.io/github/fvdm/nodejs-requestbin/master/dependencies/npm)\n[![Code Quality](https://www.bithound.io/github/fvdm/nodejs-requestbin/badges/code.svg)](https://www.bithound.io/github/fvdm/nodejs-requestbin)\n[![Greenkeeper badge](https://badges.greenkeeper.io/fvdm/nodejs-requestbin.svg)](https://greenkeeper.io/)\n\n\nUsage\n-----\n\n```js\nvar requestbin = require ('requestbin');\n\nrequestbin.create (false, function (err, data) {\n  if (err) { return console.log (err); }\n\n  console.log ('Send requests to: http://requestb.in/' + data.name);\n  console.log ('Inspect requests: http://requestb.in/' + data.name + '?inspect');\n});\n```\n\n\nInstallation\n------------\n\n`npm install requestbin`\n\n\nCallback \u0026 errors\n-----------------\n\nThe callback receives only one parameter `err` in case of an error.\nThis will be an`instanceof Error` with stack trace and sometimes more properties to describe the error.\n\nWhen everything seems fine the `err` param is `null` and a second param `data` contains the result.\n\n```js\nfunction callback (err, data) {\n  if (!err) {\n    console.log (data);\n  } else {\n    console.log (err);          // message + info properties, ie. details\n    console.log (err.stack);    // what caused it\n  }\n}\n```\n\n#### Errors\n\nmessage          | description\n:----------------|:----------------------------\nrequest failed   | Request can't be made\ninvalid response | API did not return JSON data\nHTTP error       | HTTP error like `404`\n\n\n.config ( object )\n------------------\n\nSet configuration options.\n\nname      | type    | default                                                       | description\n:---------|:--------|:--------------------------------------------------------------|:-------------------------\ntimeout   | integer | `5000`                                                        | Request time out in ms\niface     | string  |                                                               | Outbound interface to use\nbaseURL   | string  | `http://requestb.in/api/v1/`                                  | API Base URL\nuserAgent | string | `requestbin.js (https://github.com/fvdm/nodejs-requestbin)`  | User Agent\n\n```js\nrequestbin.config ({\n  iface: '1.2.3.4'\n});\n```\n\n\n.create ( [isPrivate], callback )\n---------------------------------\n\nCreate a new bin.\n\nparam     | type     | required | default | description\n:---------|:---------|:---------|:--------|:-----------------\nisPrivate | boolean  | no       | `true`  | Set to `true` to make this request bin private.\ncallback  | function | yes      |         | Callback function\n\n```js\n// make it public\nrequestbin.create (false, console.log);\n```\n\n```js\n{ color: [ 70, 150, 120 ],\n  name: 'oiwxgloi',\n  private: false,\n  request_count: 0 }\n```\n\nThe test URL is `http://requestb.in/NAME`\nThe inspect URL is `http://requestb.in/NAME?inspect`\n\n\n.get ( binName, callback )\n------------------------\n\nGet details about a bin.\n\nparam    | type     | required | default | description\n:--------|:---------|:---------|:--------|:-----------------------\nbinName  | string   | yes      |         | Bin name/ID to retrieve\ncallback | function | yes      |         | Callback function\n\n```js\nrequestbin.get ('oiwxgloi', console.log);\n```\n\n```js\n{ color: [ 70, 150, 120 ],\n  name: 'oiwxgloi',\n  private: false,\n  request_count: 1 }\n```\n\n\n.requests ( binName, callback )\n-----------------------------\n\nGet a list of the requests made to a bin.\n\nparam    | type     | required | default | description\n:--------|:---------|:---------|:--------|:-----------------------\nbinName  | string   | yes      |         | Bin name/ID to retrieve\ncallback | function | yes      |         | Callback function\n\n```js\nrequestbin.requests ('oiwxgloi', console.log);\n```\n\n```js\n[ { content_length: null,\n    body: '',\n    form_data: [],\n    remote_addr: '1.2.3.4',\n    method: 'GET',\n    headers:\n     { Host: 'requestb.in',\n       Connection: 'keep-alive',\n       Accept: '*/*',\n       'User-Agent': 'curl/7.27.0' },\n    content_type: null,\n    time: 1358144300.182959,\n    query_string: '',\n    path: '/oiwxgloi',\n    id: 'sz42lo' } ]\n```\n\n\n.request ( binName, requestId, callback )\n---------------------------------------\n\nGet details about one request made to a bin.\n\nparam     | type     | required | default | description\n:---------|:---------|:---------|:--------|:-----------------------\nbinName   | string   | yes      |         | Bin name/ID to retrieve\nrequestId | string   | yes      |         | Request ID to retrieve\ncallback  | function | yes      |         | Callback function\n\n```js\nrequestbin.request ('oiwxgloi', 'sz42lo', console.log);\n```\n\n_The output is much like the previous example, but it's an object instead of array._\n\n\nUnlicense\n---------\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\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 BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \u003chttp://unlicense.org\u003e\n\n\nAuthor\n------\n\n[Franklin van de Meent](https://frankl.in)\n\n[![Buy me a coffee](https://frankl.in/u/kofi/kofi-readme.png)](https://ko-fi.com/franklin)\n","funding_links":["https://ko-fi.com/franklin"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvdm%2Fnodejs-requestbin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvdm%2Fnodejs-requestbin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvdm%2Fnodejs-requestbin/lists"}