{"_id":"btch-http","_rev":"11-c57d7b7a25d68b21dd7f4d1b7647e1c7","name":"btch-http","dist-tags":{"rc":"2.0.0-rc.1","latest":"2.0.3"},"versions":{"1.0.0":{"name":"btch-http","version":"1.0.0","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.0","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"b2db040e42c4025be5cf96d50bc593e3d4ea8624","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.0.tgz","fileCount":15,"integrity":"sha512-k/GfFtcGUKMFm8hM67kuKzaanry8gcW0cqbwUN6nar/sKeBXx839+OF6r4SdYp29zyljcdZgcOWc/Uz0Xx9dhg==","signatures":[{"sig":"MEUCIQCzAqQIUQBCgJhllMjW/Mf9XCM8ZSRT6HIcLAMGKSHbfQIgewKFi7h0I3Vx0Qj9JHPTBmEYFkVkBPweczUkjO4KRJQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33327},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","scripts":{"dev":"tsc --watch","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"11.6.0","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"24.9.0","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.0_1761632780683_0.29819729800554406","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"btch-http","version":"1.0.1","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.1","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"ff4f1685abf26d377725396de28bff2b2e0dd42f","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.1.tgz","fileCount":19,"integrity":"sha512-y+hwAYT9SmXAY8nmcnj+6w7j2gTb47z7hVdCMzwNhD3NPhk4UsIF2GEk0kRmC8zkJsB2Pwut0AtI+j89WOsNFQ==","signatures":[{"sig":"MEQCIGWKtGcHjqisAYfzeQu3sNcghxWw2ENln41HwTGjYQYNAiBX6bDEAsZfqOfzDxRsPYcRgHhUsrbGHeSaoI1/LzaL8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34478},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","scripts":{"dev":"tsc --watch","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"11.6.0","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"24.9.0","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.1_1761633464721_0.0730327722317099","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"btch-http","version":"1.0.3","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.3","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"3388235f7a37df2e1c3ab453752e23be2d6b84be","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.3.tgz","fileCount":10,"integrity":"sha512-jc6RXudJRr8dlInlX2VxUm+tmFQoqT9bkvP5LKiSTOWYZZ2p5FwTBEmGcToYRaWQRlWoziJeG0SdeoZOTK6anw==","signatures":[{"sig":"MEUCIAtwI+ARBq9RH8BlxfeEs1nAS4/rUo77wnrgtFwABmC1AiEA05tDi6UNeQKZ1l1TJTvDjchbwVHxgbw/+IKAE4MxgeQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15850},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","scripts":{"dev":"tsc --watch","test":"ts-node test/test.ts","build":"tsc","postinstall":"npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"11.6.0","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"24.9.0","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.3_1761634290288_0.8056227425396434","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"btch-http","version":"1.0.4","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.4","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"968a8fdbe3e326727d09b9e77a6f3dae096d48db","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.4.tgz","fileCount":15,"integrity":"sha512-uXjNfTuoORQxcF3+9U9Z0kaWxIaQwYAn5CSlfEH0Mir5cFi7ZNqmgMAmgnI0W9nO7fYAUaq17JTCTe2zBaUGlA==","signatures":[{"sig":"MEUCIFIvQctnplFpf529/cri7ySrrb+5iczyeGk5OWd4CcSQAiEA98efmKqzlGuzshEDSJFAZ7UeCO/dCbZ5bGGZGyu8MDA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23707},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","scripts":{"dev":"tsc --watch","test":"ts-node test/test.ts","build":"tsc","postinstall":"npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"11.6.0","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"24.9.0","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.4_1761634389574_0.009626708415249485","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"btch-http","version":"1.0.9","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.9","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"7c6dd45a41161cbd710c39982aa8c4ee263dff0e","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.9.tgz","fileCount":15,"integrity":"sha512-njB1kV6m3FoHNiA9Eh88tcotT2l0GG1GAoI4McLV/6rbJXgjVjMTx22UnAli61j+IghhJoc8+JlM237Nhbj/AQ==","signatures":[{"sig":"MEUCIGhz5dE3lWRSouQu1h/6RzvUMiAe8CYDVauU4odNzgB0AiEArAAvDOzXtV80FprpJ6VpL9ho1cB67lmH9v1+spTuWAs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24019},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"76b6c507895a005dbdfa853ae89d67fd2cccec59","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","postinstall":"npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"10.8.2","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"20.19.5","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.9_1761637712244_0.43093949350409333","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"btch-http","version":"1.0.10","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@1.0.10","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"b2082829bd3e7d4cdd2042cac8b2d0c27ac56621","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-1.0.10.tgz","fileCount":15,"integrity":"sha512-1jXMuia4OKJsm3WolGrJgrZMhh0ZLVukN8ky7MzYfwdDF4hlZk3YEAeFccbgbiXeIwiOl0yU0yL8wxMfG+9Fng==","signatures":[{"sig":"MEUCIEvlFPtbbyab4AquwqaNvu6Y0AmF4TLS9RcQzzpzW9KvAiEAmYwwbphOV6vgaGZWBsVOPSEvLP2LAj2vfZxLw6MV1/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23960},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"90010961f577e3bed6ea669331f9f87206c42883","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","postinstall":"npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"10.8.2","description":"Custom HTTP client using Node.js https module","directories":{"test":"test"},"_nodeVersion":"20.19.5","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_1.0.10_1761638387592_0.9315085362467397","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-rc.1":{"name":"btch-http","version":"2.0.0-rc.1","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@2.0.0-rc.1","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"028b30fb256fc434b240357e35d76cb6a552b393","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-2.0.0-rc.1.tgz","fileCount":15,"integrity":"sha512-LMUoc125ejcNHJfpNeF3HLWpJaTi7t1QnKTGagPFfh47D/h/HSMqttVToyqdyf711Jnb7oht6MpUuBAx6/j6ow==","signatures":[{"sig":"MEYCIQCaczzBQ4AmGHA1L6KkkmATCE9zmqdwpCkZEBNNXY6ZhwIhALrVzilbf+qjysQkDGbMDTovHMs340hwsOho0CJEPONF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24040},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"39273d60bd01305ca1517ce51003a40b6ec491a7","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","clean":"rm -rf dist","prepare":"npm run build","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"11.6.0","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"24.9.0","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_2.0.0-rc.1_1761643050342_0.19443467224276834","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"btch-http","version":"2.0.0","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@2.0.0","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"8b2a85baf969f8a430d74ec19f4c152627c79e7f","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-2.0.0.tgz","fileCount":15,"integrity":"sha512-Jz/loePuJ4DroKm+TRSOJJrYHiO+FSaos+Eec9VhB6iNlUu8z/10ecp95HQAYC3VmC8tXxxRFf6UrX1lwvc1nQ==","signatures":[{"sig":"MEUCIEPoLQm0GqL1r2zVVMnpAxVYh8LErW2dveHEYgYsFdyAAiEA1olSQ2Zlvgya4DnEjptx9d8VkIXMeI1+gIO0n2lbbik=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24035},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"daeb9b570348650f31f3dcaffe55743939121700","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","clean":"rm -rf dist","prepare":"npm run build","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"10.8.2","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"20.19.5","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_2.0.0_1761644596808_0.21647677230851903","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"btch-http","version":"2.0.1","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@2.0.1","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"1578c6ce87493cee7c7d62a0385e38b8b8f8417e","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-2.0.1.tgz","fileCount":15,"integrity":"sha512-IfrLQAsc+8NC2OdEY882T9gKK3URXqeDDDhwezV8mhxWLbbjlBH6n8oBNzeYo1LWK23bBTxebGzIMYuObpAtnA==","signatures":[{"sig":"MEYCIQCaSX6gkC9eja4b7M1Ek3aP0lHt+NHkQ2byR+lvd/TorQIhAKdIVOl8+879FGCwCTQTkIUlOinqx5SRVviS3DvOAaoV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24066},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","engines":{"node":">=20.18.1"},"gitHead":"1c823cf20dd2091a44dcb69738a1ee11d1d032bd","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","clean":"rm -rf dist","prepare":"npm run build","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"10.8.2","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"20.19.5","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_2.0.1_1761645189992_0.6644352358947563","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"btch-http","version":"2.0.2","keywords":["http","https","client","typescript","api"],"author":{"name":"Tio"},"license":"MIT","_id":"btch-http@2.0.2","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"homepage":"https://github.com/hostinger-bot/btch-http#readme","bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"dist":{"shasum":"0da95bf3068f155ad59ca3795728332c2fb62c3b","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-2.0.2.tgz","fileCount":15,"integrity":"sha512-7FBg4dc3pg2vqeufFMoyLo/Qfxr6cy7fIl7u9ZFQvcRpomBU3KkvshZkXxNd/XcF2DnNtGxDPMonVWFmZ8vFQQ==","signatures":[{"sig":"MEUCIQC9nn0FgNnR5OfbxV33pe49I/uFRbP+q6J0YV2Sb7q86gIgBksC1uTGKDKqvXBOZrFV7WRaVJtK173MlBqeH1AoBtQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24076},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","engines":{"node":">=20.18.1"},"gitHead":"1194338407211d86176fa6f811f3831bf262aa43","scripts":{"dev":"tsc --watch","test":"npx ts-node test/Test.ts","build":"tsc","clean":"rm -rf dist","prepare":"npm run build","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"repository":{"url":"git+https://github.com/hostinger-bot/btch-http.git","type":"git"},"_npmVersion":"10.8.2","description":"Custom HTTP client using Node.js https module","directories":{},"_nodeVersion":"20.19.6","dependencies":{"undici-types":"^7.16.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^24.9.1"},"_npmOperationalInternal":{"tmp":"tmp/btch-http_2.0.2_1766651308998_0.20898503383064426","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"btch-http","version":"2.0.3","description":"Custom HTTP client using Node.js https module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","clean":"rm -rf dist","lint":"eslint . --cache","lint:fix":"eslint . --fix --cache","lint:debug":"eslint . --debug","test":"npx ts-node test/Test.ts","prepare":"npm run build","prepublishOnly":"npm run clean && npm run build"},"keywords":["http","https","client","typescript","api"],"repository":{"type":"git","url":"git+https://github.com/hostinger-bot/btch-http.git"},"bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"homepage":"https://github.com/hostinger-bot/btch-http#readme","author":{"name":"Tio"},"license":"MIT","dependencies":{"undici-types":"^7.16.0"},"devDependencies":{"@eslint/js":"^9.39.2","@types/node":"^24.9.1","eslint":"^9.39.2","jiti":"^2.6.1","ts-node":"^10.9.2","typescript":"^5.9.3","typescript-eslint":"^8.50.1"},"engines":{"node":">=20.18.1"},"_id":"btch-http@2.0.3","gitHead":"1f2c54fd887b6252657e07f64622c3ca2a73a158","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-lZ9jBYeew2vzNUFLVYZfmKwFclLD4yKJKgIOJoyuM8dUL5vAkvM8yWSdw7YxD6gFxANyqwX3FF3nbo9+9xVwOg==","shasum":"e1aff30a4604ed8982490cec99d017bd79bff3f3","tarball":"https://registry.npmjs.org/btch-http/-/btch-http-2.0.3.tgz","fileCount":15,"unpackedSize":27295,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCceRgDi0VUaoqo56Wrm6fGtjTLwOSiaYk8I6MjCize8QIhALaiQxEWUvnwQ5ucMgz5pgEg0GlKV07EtV5NCp6yZcvw"}]},"_npmUser":{"name":"botcahx","email":"tioclkp02@gmail.com"},"directories":{},"maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/btch-http_2.0.3_1766653638347_0.34862216744183816"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-28T06:26:20.682Z","modified":"2025-12-25T09:07:18.725Z","1.0.0":"2025-10-28T06:26:20.888Z","1.0.1":"2025-10-28T06:37:44.897Z","1.0.3":"2025-10-28T06:51:30.474Z","1.0.4":"2025-10-28T06:53:09.767Z","1.0.9":"2025-10-28T07:48:32.453Z","1.0.10":"2025-10-28T07:59:47.866Z","2.0.0-rc.1":"2025-10-28T09:17:30.537Z","2.0.0":"2025-10-28T09:43:17.004Z","2.0.1":"2025-10-28T09:53:10.198Z","2.0.2":"2025-12-25T08:28:29.154Z","2.0.3":"2025-12-25T09:07:18.526Z"},"bugs":{"url":"https://github.com/hostinger-bot/btch-http/issues"},"author":{"name":"Tio"},"license":"MIT","homepage":"https://github.com/hostinger-bot/btch-http#readme","keywords":["http","https","client","typescript","api"],"repository":{"type":"git","url":"git+https://github.com/hostinger-bot/btch-http.git"},"description":"Custom HTTP client using Node.js https module","maintainers":[{"name":"botcahx","email":"tioclkp02@gmail.com"}],"readme":"# btch-http\n\nA lightweight, type-safe HTTP client built on Node.js `https` module.  \nIncludes a quick `HttpGet` function and a full-featured `HttpClient` class with GET/POST, timeout, headers, and error handling.\n\n---\n\n## Features\n\n- **Zero dependencies** – uses only Node.js `https`\n- **TypeScript-first** – full type safety\n- **HttpGet** – one-liner GET with URL encoding\n- **HttpClient** – reusable client with config, headers, query params, POST\n- **Smart error handling** – `HttpError` with status & response\n- **Timeout support** – automatic cleanup on timeout\n\n---\n\n## Installation\n\nUsing npm:\n\n```bash\nnpm install btch-http\n```\n\nUsing yarn:\n\n```bash\nyarn add btch-http\n```\n\nUsing pnpm:\n\n```bash\npnpm add btch-http\n```\n\nUsing bun:\n\n```bash\nbun add btch-http\n```\n\n---\n\n## Usage\n\n### 1. Quick GET with `HttpGet`\n\n```ts\nimport { HttpGet } from 'btch-http';\n\nconst result = await HttpGet<any>(\n  'ttdl',                                          // endpoint\n  'https://tiktok.com/@user/video/123',            // url to scrape\n  '1.0.0',                                         // client version\n  30000,                                           // timeout (ms)\n  'https://backend1.tioo.eu.org'                   // base URL\n);\n\nconsole.log(result);\n```\n\n> Automatically appends `?url=...` and sets proper headers.\n\n---\n\n### 2. Full Client with `HttpClient`\n\n```ts\nimport { HttpClient } from 'btch-http';\n\nconst client = new HttpClient({\n  baseUrl: 'https://api.example.com',\n  version: '2.0.0',\n  timeout: 10000,\n});\n\n// GET with query params\nconst res1 = await client.get<{ id: number }>('users', { active: '1' });\nconsole.log(res1.data);\n\n// POST with JSON body\nconst res2 = await client.post<{ success: boolean }>('login', {\n  username: 'john',\n  password: 'secret'\n});\nconsole.log(res2.status, res2.data);\n\n// POST with custom headers\nconst res3 = await client.post('upload', { file: '...' }, {\n  Authorization: 'Bearer xyz'\n});\n```\n\n---\n\n## Configuration\n\n```ts\ninterface HttpClientConfig {\n  baseUrl: string;\n  version: string;\n  timeout?: number;           // default: 60000\n  defaultHeaders?: Record<string, string>;\n}\n```\n\n---\n\n## Response Format\n\n```ts\ninterface HttpResponse<T> {\n  status: number;\n  statusText: string;\n  data: T | null;\n  headers: Record<string, string>;\n}\n```\n\n---\n\n## Error Handling\n\n```ts\ntry {\n  await client.get('not-found');\n} catch (error) {\n  if (error instanceof HttpError) {\n    console.log(error.status);      // e.g. 404\n    console.log(error.message);     // e.g. \"Not Found\"\n    console.log(error.response?.data);\n  }\n}\n```\n\n> `HttpError` is thrown for:\n> - HTTP status ≥ 300\n> - Network errors\n> - Timeouts\n> - JSON parse failures\n\n---\n\n## Exports\n\n```ts\nexport { HttpGet, HttpClient, HttpError };\nexport type { HttpClientConfig, HttpResponse };\n```\n\n---\n\n## Example: TikTok Downloader\n\n```ts\nimport { HttpGet } from 'btch-http';\n\nconst url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243';\nconst data = await HttpGet(\n  'ttdl',\n  url,\n  '1.0.0',\n  30000,\n  'https://backend1.tioo.eu.org'\n);\n\nconsole.log('Download URL:', data.video);\n```\n\n---\n\n## License\n\nMIT\n","readmeFilename":"README.md"}