{"id":30060264,"url":"https://github.com/tiaanduplessis/puny-req","last_synced_at":"2025-10-08T06:04:29.937Z","repository":{"id":65478737,"uuid":"87204422","full_name":"tiaanduplessis/puny-req","owner":"tiaanduplessis","description":"📡 Lightweight promise based HTTP(S) request library","archived":false,"fork":false,"pushed_at":"2020-06-12T04:11:17.000Z","size":221,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T11:49:22.684Z","etag":null,"topics":["http","https","puny","request"],"latest_commit_sha":null,"homepage":"","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/tiaanduplessis.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":"2017-04-04T15:35:56.000Z","updated_at":"2022-05-30T09:45:52.000Z","dependencies_parsed_at":"2023-01-25T15:16:23.599Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/puny-req","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/puny-req","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fpuny-req","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fpuny-req/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fpuny-req/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fpuny-req/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/puny-req/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fpuny-req/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352274,"owners_count":24402672,"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-08-07T02:00:09.698Z","response_time":73,"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":["http","https","puny","request"],"created_at":"2025-08-08T01:43:01.310Z","updated_at":"2025-10-08T06:04:24.884Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e📡 req\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003e📡 Lightweight promise based HTTP(S) request library\u003c/strong\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/puny-req\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/puny-req.svg?style=flat-square\" alt=\"Package version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/puny-req\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/puny-req.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" alt=\"Standard\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/tiaanduplessis/puny-req\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/tiaanduplessis/puny-req.svg?style=flat-square\" alt=\"Travis Build\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/gh/tiaanduplessis%2Fpuny-req\"\u003e\n    \u003cimg src=\"https://badge.fury.io/gh/tiaanduplessis%2Fpuny-req.svg?style=flat-square\" alt=\"GitHub version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/puny-req/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/puny-req.svg?style=flat-square\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"PRs\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/puny-req/watchers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/watchers/tiaanduplessis/puny-req.svg?style=social\" alt=\"Github Watch Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/puny-req/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/tiaanduplessis/puny-req.svg?style=social\" alt=\"Github Star Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/tweet?text=Check%20out%20puny-req!%20https://github.com/tiaanduplessis/puny-req%20%F0%9F%91%8D\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/tiaanduplessis/puny-req.svg?style=social\" alt=\"Tweet\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  Built with ❤︎ by \u003ca href=\"tiaanduplessis.co.za\"\u003eTiaan\u003c/a\u003e and \u003ca href=\"https://github.com/tiaanduplessis/puny-req/graphs/contributors\"\u003econtributors\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003cli\u003e\u003ca href=\"#install\"\u003eInstall\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#api\"\u003eAPI\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#contribute\"\u003eContribute\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003c/details\u003e\n\n## Install\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/puny-req.svg)](https://greenkeeper.io/)\n\n```sh\n$ npm install --save puny-req\n# OR\n$ yarn add puny-req\n```\n\n## Usage\n\n```js\nconst req = require('puny-req')\n\n// GET request\nreq('https://jsonplaceholder.typicode.com/posts/1').then((res) =\u003e {\n  console.log(res.headers, res.body)\n}).catch(console.log)\n\n// POST request\nreq({\n  url: 'https://jsonplaceholder.typicode.com/posts',\n  json: {\n    title: 'Hi', body: 'Friend', userId: 1\n  }\n}).then((res) =\u003e {\n  console.log(res.headers, res.body)\n}).catch(console.log)\n\n```\n\n## API\n\nModule exports a single function that returns a promise. It accepts a url string as argument for simple `GET` requests or an object with the following options:\n\n```js\n{\n  url: String, // (Required)\n  port: Int, // Port of request. Defaults to 80 or 443 depending on protocol\n  headers :Object, // Headers associated with request. If form or json property provided, correct headers will be added\n  method: String, // Method of request, Defaults to GET or POST if form or json property provided\n  auth: String, // Authorization in 'user:password' format\n  encoding: String // Encoding defaulted to UTF-8\n  form: Object || String, // form data to POST\n  json: Object // Object to POST,\n}\n```\n\nThe promise resolves with the response object. The body is parsed to a object if possible.\n\n## Contribute\n\nContributions are welcome. Please open up an issue or create PR if you would like to help out.\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fpuny-req","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fpuny-req","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fpuny-req/lists"}