{"_id":"centra","_rev":"3720085","name":"centra","description":"The core lightweight HTTP client for Node","dist-tags":{"latest":"2.7.0"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"time":{"modified":"2025-02-13T06:02:57.000Z","created":"2018-09-18T02:23:20.622Z","2.7.0":"2024-04-11T00:07:42.123Z","2.6.0":"2022-11-19T20:57:54.961Z","2.5.0":"2021-07-17T23:10:38.144Z","2.4.2":"2020-06-11T21:28:09.087Z","2.4.1":"2020-06-11T21:12:10.681Z","2.4.0":"2019-08-20T01:34:28.827Z","2.3.0":"2019-06-02T20:33:40.317Z","2.2.2":"2019-01-04T08:19:49.634Z","2.2.1":"2019-01-01T02:31:11.722Z","2.2.0":"2018-11-16T01:38:24.681Z","2.1.0":"2018-10-07T03:16:14.496Z","2.0.2":"2018-09-28T04:15:52.819Z","2.0.1":"2018-09-23T04:56:26.249Z","2.0.0":"2018-09-22T02:49:47.999Z","1.0.1":"2018-09-18T02:24:59.123Z","1.0.0":"2018-09-18T02:23:20.622Z"},"users":{},"author":{"name":"Ethan Davis"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"versions":{"2.7.0":{"name":"centra","version":"2.7.0","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js --test-force-exit","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"body-parser":"^1.20.2","express":"^4.19.2"},"dependencies":{"follow-redirects":"^1.15.6"},"_id":"centra@2.7.0","gitHead":"c85c201fe2b21bea74d3c9f6879df90d0acb0d3b","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"4c8312a58436e8a718302011561db7e6a2b0ec18","size":4033,"noattachment":false,"key":"/centra/-/centra-2.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.7.0.tgz"},"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.7.0_1712794061968_0.19670829020781277"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-11T00:07:42.123Z","publish_time":1712794062123,"_source_registry_name":"default","_cnpm_publish_time":1712794062123},"2.6.0":{"name":"centra","version":"2.6.0","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"5f1578a8ad5e982b7e57582eb1ee86bcdd1499e4","_id":"centra@2.6.0","_nodeVersion":"19.0.1","_npmVersion":"9.1.1","dist":{"shasum":"79117998ee6908642258db263871381aa5d1204a","size":4098,"noattachment":false,"key":"/centra/-/centra-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.6.0.tgz"},"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.6.0_1668891474800_0.3266686990546539"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-19T20:57:58.870Z","publish_time":1668891474961,"_cnpm_publish_time":1668891474961},"2.5.0":{"name":"centra","version":"2.5.0","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"92fc2a6d6d0cb357b830f9f831002992558bcfbe","_id":"centra@2.5.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"854c30f9a3ff50da49fa69a8cb441aa25aa1e8e8","size":4101,"noattachment":false,"key":"/centra/-/centra-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.5.0.tgz"},"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.5.0_1626563437997_0.6926077519961864"},"_hasShrinkwrap":false,"publish_time":1626563438144,"_cnpm_publish_time":1626563438144},"2.4.2":{"name":"centra","version":"2.4.2","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"1fa4bc7f8ddff4e0acf651e9daca27c9ae9898ed","_id":"centra@2.4.2","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"shasum":"3bad51dbca2250dbecad84598dc7184973f4c4a9","size":4081,"noattachment":false,"key":"/centra/-/centra-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.4.2.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.4.2_1591910888936_0.2423020524677324"},"_hasShrinkwrap":false,"publish_time":1591910889087,"_cnpm_publish_time":1591910889087},"2.4.1":{"name":"centra","version":"2.4.1","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"82ce094255c7377e51f1e6db4e3a9756947bd41a","_id":"centra@2.4.1","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"shasum":"63fb6f0f457d72fb4f55a3c6f5bd68855c280e63","size":4066,"noattachment":false,"key":"/centra/-/centra-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.4.1.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.4.1_1591909930568_0.054457051540592216"},"_hasShrinkwrap":false,"publish_time":1591909930681,"_cnpm_publish_time":1591909930681},"2.4.0":{"name":"centra","version":"2.4.0","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"b871bf619d0c60d9eb0838929e61d6507ecde98b","_id":"centra@2.4.0","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"shasum":"53846f97db27705e9f90c46e0f824f6eb697e2d1","size":3805,"noattachment":false,"key":"/centra/-/centra-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.4.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.4.0_1566264868670_0.5354697138206563"},"_hasShrinkwrap":false,"publish_time":1566264868827,"_cnpm_publish_time":1566264868827},"2.3.0":{"name":"centra","version":"2.3.0","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"bfc32551f23d6be100233675e209d92d876ffd2a","_id":"centra@2.3.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"f948f515df19e0254eb870eafe99dc8e6639c0c0","size":3662,"noattachment":false,"key":"/centra/-/centra-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.3.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.3.0_1559507620143_0.5560609551776496"},"_hasShrinkwrap":false,"publish_time":1559507620317,"_cnpm_publish_time":1559507620317},"2.2.2":{"name":"centra","version":"2.2.2","description":"The core lightweight HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":["http","https","request","fetch","url","lightweight"],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"1db01a042160009094a78359310e671ba5dfbfe3","_id":"centra@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"62d8c6a01bb54ecaf8addae3a06798c4918d2d77","size":3679,"noattachment":false,"key":"/centra/-/centra-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.2.2.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.2.2_1546589989519_0.43015956163015345"},"_hasShrinkwrap":false,"publish_time":1546589989634,"_cnpm_publish_time":1546589989634},"2.2.1":{"name":"centra","version":"2.2.1","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"4c0d3c3acfb25a345c33a9601014f3522356dc23","_id":"centra@2.2.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"54c3b604031923a260aa7b215ed9f655f5df4810","size":3624,"noattachment":false,"key":"/centra/-/centra-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.2.1.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.2.1_1546309871557_0.08871732046723735"},"_hasShrinkwrap":false,"publish_time":1546309871722,"_cnpm_publish_time":1546309871722},"2.2.0":{"name":"centra","version":"2.2.0","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"6ca61282e8f0ecef4b0c1afe1837c8b7d601a543","_id":"centra@2.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.10.1","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"0a53a0a3cbb51d1b4b37d7dad6cc2e538eec3a61","size":3651,"noattachment":false,"key":"/centra/-/centra-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.2.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.2.0_1542332304493_0.6730305469098514"},"_hasShrinkwrap":false,"publish_time":1542332304681,"_cnpm_publish_time":1542332304681},"2.1.0":{"name":"centra","version":"2.1.0","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"retra":"^1.0.2","whew":"^1.1.3"},"gitHead":"4772fbd324df251a35f66370f20e9f86a4a3d256","_id":"centra@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"05f9c31a37733383b1eaf0d861459f84fe171c4b","size":3608,"noattachment":false,"key":"/centra/-/centra-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.1.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.1.0_1538882174320_0.2766729411505231"},"_hasShrinkwrap":false,"publish_time":1538882174496,"_cnpm_publish_time":1538882174496},"2.0.2":{"name":"centra","version":"2.0.2","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"vaxic":"^2.3.5","whew":"^1.1.3"},"gitHead":"1afeca701b13a4bc9951a5800525676fcaea17e7","_id":"centra@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"b1d21631c5e14f6eb82aee24eb6f8c854688c148","size":3383,"noattachment":false,"key":"/centra/-/centra-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.0.2.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.0.2_1538108152673_0.5959508883541118"},"_hasShrinkwrap":false,"publish_time":1538108152819,"_cnpm_publish_time":1538108152819},"2.0.1":{"name":"centra","version":"2.0.1","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"vaxic":"^2.3.5","whew":"^1.1.3"},"gitHead":"64f7fce3ea2dae23bbde22fe665390d5c0f472ad","_id":"centra@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"95196b47914a5fb2441bb2b85df15854a43bc65a","size":3394,"noattachment":false,"key":"/centra/-/centra-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.0.1.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.0.1_1537678586159_0.527429448675167"},"_hasShrinkwrap":false,"publish_time":1537678586249,"_cnpm_publish_time":1537678586249},"2.0.0":{"name":"centra","version":"2.0.0","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"vaxic":"^2.3.5","whew":"^1.1.3"},"gitHead":"3b9698d662649a4374a624c96177bf64c9b78b33","_id":"centra@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"ee4eeb9d45f39be56d56082608d0377abc04d404","size":3395,"noattachment":false,"key":"/centra/-/centra-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-2.0.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_2.0.0_1537584587804_0.2896556167577806"},"_hasShrinkwrap":false,"publish_time":1537584587999,"_cnpm_publish_time":1537584587999},"1.0.1":{"name":"centra","version":"1.0.1","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra","devDependencies":{"vaxic":"^2.3.5","whew":"^1.1.3"},"gitHead":"34ef89395084f8013073cfd74ec0c363952214a6","_id":"centra@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"88d164906779c43adc25ffc175585bcbcc168d55","size":3273,"noattachment":false,"key":"/centra/-/centra-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-1.0.1.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_1.0.1_1537237498648_0.841641079091795"},"_hasShrinkwrap":false,"publish_time":1537237499123,"_cnpm_publish_time":1537237499123},"1.0.0":{"name":"centra","version":"1.0.0","description":"The powerful and awesome HTTP client for Node","main":"createRequest.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ethanent/centra.git"},"keywords":[],"author":{"name":"Ethan Davis","url":"https://ethanent.me"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/centra/issues"},"homepage":"https://github.com/ethanent/centra#readme","devDependencies":{"vaxic":"^2.3.5","whew":"^1.1.3"},"gitHead":"c32c007f688cda889b4746e12e8ed85395f82cfd","_id":"centra@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"shasum":"ae14f2ac100866256fdc11157eab9c0525cbd945","size":3277,"noattachment":false,"key":"/centra/-/centra-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/centra/download/centra-1.0.0.tgz"},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/centra_1.0.0_1537237400525_0.3972145991040501"},"_hasShrinkwrap":false,"publish_time":1537237400622,"_cnpm_publish_time":1537237400622}},"readme":"<p align=\"center\" style=\"text-align: center;\"><img src=\"https://github.com/ethanent/centra/blob/master/media/centraLogo.png?raw=true\" width=\"400\"/></p>\n\n> The core lightweight HTTP client for Node\n\n[GitHub](https://github.com/ethanent/centra) | [NPM](https://npmjs.com/package/centra)\n\n## Install\n\n```shell\nnpm i centra\n```\n\n## Why centra?\n\ncentra is the best request library for developers; it provides a number of extremely useful features while still being one of the most lightweight Node.js HTTP client libraries available.\n\n## Use centra!\n\nFirst, require the library.\n\n```js\nconst c = require('centra')\n```\n\nThen let's make a request in an async function!\n\n```js\n;(async () => {\n\tconst res = await c('https://example.com').send()\n\n\tconsole.log(await res.text())\n})()\n```\n\n## More advanced usage\n\n### Send data in a JSON body\n\n```js\nc('https://example.com/nonexistentJSONAPI', 'POST').body({\n\t'name': 'Ethan'\n}, 'json').send().then((res) => {\n\t/*...*/\n})\n```\n\n### Send data in a form body\n\n```js\nc('https://example.com/nonexistentJSONAPI', 'POST').body({\n\t'name': 'Ethan'\n}, 'form').send().then((res) => {\n\t/*...*/\n})\n```\n\n### Set query string parameters\n\nOne at a time:\n\n```js\nc('https://example.com/user').query('id', 'u1817760').send().then((res) => {\n\t/*...*/\n})\n```\n\nMany at a time:\n\n```js\nc('https://example.com/user').query({\n\t'id', 'u1817760',\n\t'name': 'Ethan'\n}).send().then((res) => {\n\t/*...*/\n})\n```\n\n### Set a request timeout\n\n```js\nc('https://example.com').timeout(2000).send().then((res) => {\n\t// Success!\n}).catch((err) => {\n\t// Has the request timed out?\n})\n```\n\n### Stream a request's response\n\nIn this example, the [stream](https://nodejs.org/api/stream.html) is piped to a file:\n\n```js\n// require the fs module beforehand\n\nc('https://example.com').stream().send().then((stream) => stream.pipe(fs.createWriteStream(path.join(__dirname, 'logo.png'))))\n```\n\n### Follow redirects\n\n```js\nc('https://example.com/').followRedirects(5).send()\n```\n\n### Switch paths on the fly\n\n```js\nc('https://example.com/test').path('/hello').send()\n\n// This will make a request to https://example.com/test/hello\n```\n\n### Specify request headers\n\nOne at a time:\n\n```js\nc('https://example.com').header('Content-Type', 'application/json').send()\n```\n\nMany at a time:\n\n```js\nc('https://example.com').header({\n\t'Content-Type': 'application/json',\n\t'X-Connecting-With': 'centra'\n}).send()\n```\n\n### Modify core HTTP request options\n\nSee [http.request](https://nodejs.org/dist/latest-v10.x/docs/api/http.html#http_http_request_url_options_callback)'s options for more information about core HTTP request options.\nLet's change our localAddress as an example.\n\n```js\nc('https://example.com').option('localAddress', '127.0.0.2').send()\n```\n\n### Accept compressed responses\n\n```js\nc('https://example.com').compress().send()\n\n// This will cause centra to accept compressed content from the server. (gzip and deflate are currently supported)\n```\n","_attachments":{},"homepage":"https://github.com/ethanent/centra","bugs":{"url":"https://github.com/ethanent/centra/issues"},"license":"MIT"}