{"_id":"@10xdevspl/http-client","name":"@10xdevspl/http-client","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@10xdevspl/http-client","version":"0.0.1","description":"Node HTTP client used in course 10xDevs.pl","main":"index.js","repository":{"type":"git","url":"git+https://github.com/przeprogramowani/10x-http-client.git"},"keywords":["http","superagent","course","delay","timeout"],"author":{"name":"Przeprogramowani.pl"},"license":"ISC","dependencies":{"superagent":"10.2.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/przeprogramowani/10x-http-client/issues"},"homepage":"https://github.com/przeprogramowani/10x-http-client#readme","engines":{"node":">=16.0.0"},"_id":"@10xdevspl/http-client@0.0.1","gitHead":"eaff4c3b5c36e524cde49b4ece12a4f9d7719209","_nodeVersion":"20.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-AB1k2WnvVekNjwA5qlYt7qHi7q1cKEBPwQS1blWrwlsttVbTK85mYRHRr7NE/xu0D+jXxB/QDkqMfdgd3goohg==","shasum":"dff2279f008c43d60daeb8437bfef949b9f926b9","tarball":"https://registry.npmjs.org/@10xdevspl/http-client/-/http-client-0.0.1.tgz","fileCount":4,"unpackedSize":3449,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICuTrSvPDqGzAP6sh69KkbNzQVUfQKA40I1Fuvk1jCPGAiATMjpsM1xT0QJFtuX20hirziCtQVa2Ax5cNwGGCsHJEg=="}]},"_npmUser":{"name":"psmyrdek","email":"przemek.smyrdek@gmail.com"},"directories":{},"maintainers":[{"name":"psmyrdek","email":"przemek.smyrdek@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/http-client_0.0.1_1742382845963_0.6796596094499014"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-19T11:14:05.861Z","0.0.1":"2025-03-19T11:14:06.135Z","modified":"2025-03-19T11:14:06.421Z"},"maintainers":[{"name":"psmyrdek","email":"przemek.smyrdek@gmail.com"}],"description":"Node HTTP client used in course 10xDevs.pl","homepage":"https://github.com/przeprogramowani/10x-http-client#readme","keywords":["http","superagent","course","delay","timeout"],"repository":{"type":"git","url":"git+https://github.com/przeprogramowani/10x-http-client.git"},"author":{"name":"Przeprogramowani.pl"},"bugs":{"url":"https://github.com/przeprogramowani/10x-http-client/issues"},"license":"ISC","readme":"# 10x HTTP Client\n\nA simple Node.js wrapper for superagent with built-in random delay (3-5 seconds) for all requests.\n\n## Important Node\n\nThis package is not for production use. It is a simple wrapper for superagent with built-in random delay for all requests. Educational purposes only.\n\n## Installation\n\n```\nnpm install\n```\n\n## Usage\n\n```javascript\nconst httpClient = require(\"./index\");\n\n// GET request example\nasync function makeGetRequest() {\n  try {\n    const response = await httpClient.get(\n      \"https://jsonplaceholder.typicode.com/posts/1\"\n    );\n    console.log(\"GET Response:\", response.body);\n  } catch (error) {\n    console.error(\"GET Error:\", error.message);\n  }\n}\n\n// POST request example\nasync function makePostRequest() {\n  try {\n    const data = {\n      title: \"foo\",\n      body: \"bar\",\n      userId: 1,\n    };\n    const response = await httpClient.post(\n      \"https://jsonplaceholder.typicode.com/posts\",\n      data\n    );\n    console.log(\"POST Response:\", response.body);\n  } catch (error) {\n    console.error(\"POST Error:\", error.message);\n  }\n}\n\n// Run examples\nmakeGetRequest();\nmakePostRequest();\n```\n\n## Features\n\n- GET and POST methods\n- Random delay between 3-5 seconds for all requests\n- Simple API with promise-based responses\n- Support for query parameters and headers\n","readmeFilename":"README.md","_rev":"1-75835368c8b39c8cf28d36cceef3f3a8"}