{"_id":"http-as-promised","_rev":"41-124bda4ba90a660425caa92ba77fb0f9","name":"http-as-promised","description":"Promisified HTTP client","dist-tags":{"0.0.1":"0.0.1","latest":"2.0.1","0.0.2":"0.0.2"},"versions":{"0.0.1":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.1","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.8.0"],"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"_id":"http-as-promised@0.0.1","_shasum":"0d1a9565a9e94c8ae92a45501a168846adcf39e8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"0d1a9565a9e94c8ae92a45501a168846adcf39e8","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.1.tgz","integrity":"sha512-hy3br5ojLpWqpU8oOepbQi7uKiZPy+50Fj2+rY0MsVCCLNI336zftNmyMd+HwRE7DX/pxNZyRhBCWnaYEn1eRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFhE704F8PDXSUVtnQxnoeAMFJ+lXfQpf51UF2DMKDlAiACCLNbgly9DPN0y4cRucNO3UowsSNJX0qOqzErJLz7RA=="}]}},"0.0.2":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.2","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.8.0"],"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"_id":"http-as-promised@0.0.2","_shasum":"44a7aa74d5e193644cff1ed889b585f35c945dd6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"44a7aa74d5e193644cff1ed889b585f35c945dd6","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.2.tgz","integrity":"sha512-Mt8KSZ9brEDrPqKtWNIADFze34CpsIQNAds93u47uMctPgodGnO30Pz/faA1dnp7WTFfD7LplpIgv6nCilBnUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKEVNoH0IuT5d/N7s+o3gRkucYu5pstBQMKpZkkzoaeAiEAxHy2V7Lov/Nqb8JraysS0RSo3gGFAHaTXHkoOlq/tbE="}]}},"0.0.3":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.3","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.8.0"],"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"gitHead":"28c606c0d5f9be3e05584df5896526206dfb277e","_id":"http-as-promised@0.0.3","scripts":{},"_shasum":"1b105b12fc95e62730302bf8ecc4f0321ec114fa","_from":".","_npmVersion":"2.0.1","_nodeVersion":"0.10.28","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"1b105b12fc95e62730302bf8ecc4f0321ec114fa","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.3.tgz","integrity":"sha512-GJM6+I7xWs0c23cep6FQWz35TYaTpa7d5IF9f+MxsackyhVgGFkpVB46zUrSeT+rgSXa43YFP2L2uwDdPPXZUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDzbwSU8Nu+LRlJm+4C7hPHCAJE00GCyZ6al3W8np5uAiAwzGrRBsXnQrIlFfMCDzKbo71/+9/dmjNMmsTS66MVZg=="}]}},"0.0.4":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.4","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha test -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","chance":"^0.6.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0"},"gitHead":"64c454583d08b4eccba481cde9fdd3f073e211b6","_id":"http-as-promised@0.0.4","_shasum":"c2691b7f1f68e035f5ef68f11bddc943d23559ea","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"c2691b7f1f68e035f5ef68f11bddc943d23559ea","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.4.tgz","integrity":"sha512-957/B1Mwer8wFnr/O1XrwUks09AmcFyZ806WGCsCy5Fclmugd70XmZ1qPxiAJTyuLnc8cgCEfnPYG/t06Tc8ew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGehSG/Ed5jE/U+MpI+O7t7KeGsxe9BVCMpg84wN0PN2AiEA81bR68eO12qc3t+dENobhnFChen4Urf1sGafi0Jg10s="}]}},"0.0.5":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.5","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha test -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","chance":"^0.6.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"0c6272606f1fa87e7149a82d9efa4a6939d36755","_id":"http-as-promised@0.0.5","_shasum":"0baa925808a652d402e4d1bbd6eee6cb3863896e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"0baa925808a652d402e4d1bbd6eee6cb3863896e","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.5.tgz","integrity":"sha512-009b+kbDMucioJwpWnLoCzdNVADnfufx+b4Uy+OomV8FKuOX23DwumeN0StWlDfmsDkyFIHBHfrlEXXpjHlN3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxtly9Onj9z7Stl1/zwMttTbM40cHU+mmuQgpqazLceQIgWjsP7UOTzDs4Y/NbMczNSr6esmq6p7rBxgAGPWd0n68="}]}},"0.0.6":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.6","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha test -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","chance":"^0.6.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"fbe1fa393f4983915f80152291a137101c18d9d2","_id":"http-as-promised@0.0.6","_shasum":"1a2045afc73bc9fa34433c0732520e46dec84e10","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"1a2045afc73bc9fa34433c0732520e46dec84e10","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.6.tgz","integrity":"sha512-PSxp1fPQYdHoBEsh7EZZQKeHdajaXXA0nrqQqxsH7QVTM0kIvmGcu2kQXXUQdL9zh69MgdMlG5TcZp9WSXQV2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgIOmegKn10KF58MoswDMSj18fOZm8VGfPvP2flX2AHAIhAOHY2oK/c/VaAzKABjoqUoiBliqnTZy6Ba59KCpwxG+0"}]}},"0.0.7":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.7","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha test -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","chance":"^0.6.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"0636fa8131ebc7031f65344617016a48a9ff51c9","_id":"http-as-promised@0.0.7","_shasum":"44dcacd575bc8923d4c8fbd5ba74cd87a6703f12","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"44dcacd575bc8923d4c8fbd5ba74cd87a6703f12","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.7.tgz","integrity":"sha512-39ZKXKBXzqUzDT/mzha1wCIOrAxhsUS1tNBqY+f5KJ8iTd9W46LjmKY8OYgxO738LiSl420p5cbblu/Y7uFL4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0srCBGMNCKRtg0Tv49MTf0g60Wdn8+QzawPqV6DTpowIgdfDibNIMxicdC0FiTiNku1VfrslHwtMVny92rWhmcMo="}]}},"0.0.8":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","tags":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.8","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","chance":"^0.6.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"5bbceca753a15e9711cf400a0374393bd6db4bdd","_id":"http-as-promised@0.0.8","_shasum":"1052f1177447221f1448bf53852021d00dcd4563","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"1052f1177447221f1448bf53852021d00dcd4563","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.8.tgz","integrity":"sha512-T3y7yls72QY57NajKndDVF3huHvTa632Kyql4KLXFfOwcMFuedL4IlPB4JVKXJ8vNf/aSn7Rbe7xVJ52t79c0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeKTzoDmaGIAHZFy/cR0NZf+EN8Opj4B16mzFcW3EDVAIhAL39ThQLImLk+MWkqmj20XFtzJyRU0CcgoKF0IILtQKH"}]}},"0.0.9":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.9","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"535cc7b75b8929dadc7517bed73085f158d5831f","_id":"http-as-promised@0.0.9","_shasum":"9fa55e409e08ca72fc6ef161b5edb5babc945710","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"9fa55e409e08ca72fc6ef161b5edb5babc945710","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.9.tgz","integrity":"sha512-Ar0uOlTIdTLRJx8c3/oE3PJWrs/kOmLHan51I/+Ufvp+dqucCm27eBADs96VqXz/N+4Sp/2JXsypfKxGi9he4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWmJdeJ4mHFWWymnJ2ZyFsOAUqtop6TAzSWsFL7dJ6oAiBx3M6XHrIEw/7ChmGU1okcKKaEQCjiEV7C1ftHcdm0Eg=="}]}},"0.0.10":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.10","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"a08b3bbc41a55616d2ac587b02156f4c33fc03fc","_id":"http-as-promised@0.0.10","_shasum":"24e5ca6d3c44b67722a7d5d7bffbe2f65e5f5ae5","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"24e5ca6d3c44b67722a7d5d7bffbe2f65e5f5ae5","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.10.tgz","integrity":"sha512-3uIhVWNjaLxXHQOL7JlypM56c98kIiInsYNzaYUe5V2vj7q9+v/FH4/X+n+8rTHqh1vHSyHClggS1npm4oY3Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvHidagW9Wh7g96gh1eKcQGv/k0VX9jlqz5xOMhUQapAIgSoQQ4zA+gyXhv8xFpeW2AFXtSoB5q/ez10Cv+hK5e7E="}]}},"0.0.11":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.11","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"410d8db1679f6d41b5339b6dd646ff9d80e652a6","_id":"http-as-promised@0.0.11","_shasum":"9d499a475418b3f2b937e3f69781504d800c54ed","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"9d499a475418b3f2b937e3f69781504d800c54ed","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.11.tgz","integrity":"sha512-uOBXiUd3HeaqEFPT5V1OyoUyFVa1Y6yO1GN9oagIYvhu7CzK0XJBYsEXkPaL1fXJH4ezjSL/i2g82e89g1wkrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC41HD36k847TDbYVv6SCouxD1UX9AKCL+g43POwg2B5gIhAI06Ym2yIIXpMtJOV1J1gre25NQua+CuWSHxLOatMFT4"}]}},"0.0.12":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.0.12","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"410d8db1679f6d41b5339b6dd646ff9d80e652a6","_id":"http-as-promised@0.0.12","_shasum":"56cf1afa9e9aa62892345c2c884a84036ba14541","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"56cf1afa9e9aa62892345c2c884a84036ba14541","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.0.12.tgz","integrity":"sha512-B5/whelTzS9rGoEJ0EodNO8GH1jtTi/OtoDxBzzvcBG16qfcbd9Y0vubF51oOjOG47jdtSDkChPhOmDR4SxgKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrNm6j1hp7+TVcfvl8eCgXsJ5PZBrf91pBJ1e8aTNUEwIga8RSE2YoCkjeYweuetNOhiT02jsXLh60vZ1yWP7X8Aw="}]}},"0.1.0":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"0.1.0","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.3.2","create-error":"^0.3.1","request":"^2.42.0"},"devDependencies":{"chai":"^1.9.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","istanbul":"^0.3.2","mocha":"^1.21.4","mocha-lcov-reporter":"0.0.1","nock":"^0.46.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"70fb2729789beb4dff16109cf78fe79433d73f9b","_id":"http-as-promised@0.1.0","_shasum":"a0c21a097f3ccbaad567c8bd55a19299a15d929e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"a0c21a097f3ccbaad567c8bd55a19299a15d929e","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-0.1.0.tgz","integrity":"sha512-YHIwXqVLusdt6v0EViHFkPsWeO651JpUx+cFzXXuGxxWbc5IybTdFg8+ddXtFvkkbFI9Wt/wEOMeychpqBalxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF2BLgbfQC85EKc1rJwmWPQb7YI+dpiKhli5qgecFdOwIgMnAlQiBMxtQUPa2cm4FvlFtBdwOBClbWhDwDH7t8ZRY="}]}},"1.0.0":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"1.0.0","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test && eslint ./","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.9.12","create-error":"^0.3.1","request":"^2.53.0"},"devDependencies":{"chai":"^2.1.1","chai-as-promised":"^4.1.1","coveralls":"^2.11.1","eslint":"^0.15.1","istanbul":"^0.3.2","mocha":"^2.1.0","mocha-lcov-reporter":"0.0.1","nock":"^1.1.0","sinon":"^1.10.3","sinon-chai":"^2.5.0"},"gitHead":"8ecf3c12def4a8c6f61d144aa77d655265bea5fb","_id":"http-as-promised@1.0.0","_shasum":"19b1bf8ba981d10dbd3a6133add490009665b5e8","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"19b1bf8ba981d10dbd3a6133add490009665b5e8","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-1.0.0.tgz","integrity":"sha512-HU9HDYNdcD7tULgDnZ5mgT7g24CB/KjDkVKW9O1VfmKOiTEOmWMcNQDPHn8xiT87MDYxAWP/fMErmmpIOfwDsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIafgruHgX49Jw7/Rk6wHrJ1J9AhGb+x4p9OOkJJwvfQIhAJmw/2aDgs2FpyEMloi4gJYyOKola1JhUV+t4jVHiZ2M"}]}},"1.1.0":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"1.1.0","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"git+https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":["node >= 0.10.0"],"scripts":{"test":"mocha test && eslint ./","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^2.9.34","create-error":"^0.3.1","request":"^2.60.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","coveralls":"^2.11.4","eslint":"^1.1.0","istanbul":"^0.3.17","mocha":"^2.2.5","mocha-lcov-reporter":"0.0.2","nock":"^2.10.0","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"c771e53174736c931b25d0da1bcc0bafaad29d85","_id":"http-as-promised@1.1.0","_shasum":"6d8beb6850deca24d21cc832cedf1f53e6efb4e4","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"maintainers":[{"name":"jcready","email":"jcready@gmail.com"}],"dist":{"shasum":"6d8beb6850deca24d21cc832cedf1f53e6efb4e4","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-1.1.0.tgz","integrity":"sha512-gm+GZDp8/dvuKxV+hdY3wpdKHyDvE/2I0Sk/BfahtdjbOnE1LOWtnyqVfKbBa03TzZxJ+AhS7oVrbytJ/DKfBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2tqPzTQfmih1poKPpWvxEvNbtVvnU0Q7oTr/BqUNOQAiEAkqXROGrXhobOagKmUNIak6CUsvDuE8EUrK90TjMwiDI="}]}},"2.0.1":{"name":"http-as-promised","description":"Promisified HTTP client","main":"http.promise.js","keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"],"version":"2.0.1","author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"git+https://github.com/jcready/http-as-promised.git"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","engines":{"node":">=4"},"scripts":{"test":"mocha test && eslint ./","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R spec && open coverage/lcov-report/http-as-promised/index.html"},"dependencies":{"bluebird":"^3.5.1","create-error":"^0.3.1","request":"^2.83.0"},"devDependencies":{"chai":"^4.1.2","chai-as-promised":"^7.1.1","coveralls":"^3.0.0","eslint":"^4.15.0","istanbul":"^0.4.5","mocha":"^4.1.0","mocha-lcov-reporter":"1.3.0","nock":"^9.1.6","sinon":"^4.1.4","sinon-chai":"^2.14.0"},"gitHead":"4b54e55ae8b48a1f7793cd7480be56b6ddbd5c4e","_id":"http-as-promised@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.8.1","_npmUser":{"name":"jcready","email":"jcready@gmail.com"},"dist":{"integrity":"sha512-wKNIFfVBm6Pg/NsNXH5SPTmrcHXm0x7Q3CND4jZJbufq31aRF/EZj09I3PbIzxxIiIl5Ox+n7Bukic6OK7DnPg==","shasum":"667791021ef94a1cbbdb3ae7355330287343ed83","tarball":"https://registry.npmjs.org/http-as-promised/-/http-as-promised-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL/8Jnl1bkv00Z9f6uUuxhxsIIhMi6GIOgWquKWN3/ggIgNVOtTpjWmva7x6//3KPd9LLPUeb0jSqymjPFhqUuwfM="}]},"maintainers":[{"name":"apechimp","email":"apeherder@gmail.com"},{"name":"jcready","email":"jcready@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-as-promised-2.0.1.tgz_1515779827962_0.9216999295167625"}}},"readme":"# HTTP as Promised — Promisified HTTP client.\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n[![Code Climate][codeclimate-image]][codeclimate-url]\n[![Dependencies][dependencies-image]][dependencies-url]\n\nUsing [bluebird][bluebird] and [create-error][create-error] to make [request][request] easier to use. The most notible difference between this library and simply \"promisifying\" the request module is that this library will automatically reject the promise with an `HTTPError` if the response idicates an HTTP error (e.g. `response.statusCode >= 400`). HTTP as Promised supports all the same [options you'd pass to request](https://github.com/mikeal/request/blob/master/README.md#requestoptions-callback) as well as all of [request's convenience methods](https://github.com/mikeal/request/blob/master/README.md#convenience-methods).\n\n## Super simple to use. Promise.\n\nHTTP as Promised is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.\n\n```javascript\nvar $http = require('http-as-promised');\n\n$http('https://www.github.com')\n  .spread(function (response, body){\n    console.log(body) // HTTP request was successful\n  })\n  .catch(function (error){\n    console.error(error) // HTTP request was unsuccessful\n  });\n```\n\n## Options\n\nIn addition to [all of the options](https://www.npmjs.org/package/request#request-options-callback-) that the [request module][request] accepts, there are two options specific to HTTP as Promised:\n\n* **`error`** - If set to `false` HTTP as Promised will no longer reject the response with an [`HTTPError`](#http-errors) based on the its HTTP status code. Defaults to `true`. [See below](#http-errors).\n\n* **`resolve`** - Indicates the fulfillment value with which you want the HTTP promise to be resolved. Accepts a string or array of strings. Possible values: \n\n  * **`['response', 'body']`** *(default)* - By default HTTP as Promised will resolve promises with an array containing the `response` ([`http.IncomingMessage`](http://nodejs.org/api/http.html#http_http_incomingmessage) object) followed by the response `body` (`String`, `Buffer`, or JSON object if the `json` option is supplied). This means that for simple access to the `body` you would probably want to use [`.spread()`](https://github.com/petkaantonov/bluebird/blob/master/API.md#spreadfunction-fulfilledhandler--function-rejectedhandler----promise) instead of [`.then()`](https://github.com/petkaantonov/bluebird/blob/master/API.md#thenfunction-fulfilledhandler--function-rejectedhandler----promise) as seen in the example above.\n  * **`['body', 'response']`** - This swaps the ordering of the resolved array so that the \"body\" comes before the \"response\" object in the resolved array.\n  * **`'response'`** - This will resolve the promise with just the `response` object\n  * **`'body'`** - This is probably the one that is going to be the most useful setting for developers looking for a simple interface. Using this means you can easily pass the promises around and know that the fulfillment value is just going to be the `body` object.\n \n    ```javascript\n    var url = 'https://www.npm.org',\n        nock = require('nock')(url);\n        \n    nock.post('/').reply(200, 'Hello World!');\n    $http.post(url, { resolve: 'body' }).then(console.log);\n    ```\n     \n    ```\n    \"Hello World\"\n    ```\n\n## HTTP Errors\n\nHTTP as Promised exposes a custom `HTTPError` constructor which is extended from the global `Error` constructor. The `HTTPError` constructor also exposes more specific types of `HTTPError` constructors both for ranges/types of HTTP Errors (4xx/client and 5xx/server) as well as status-code-specific HTTP errors (404, 418, 509, etc.). When instanciated, each of these constructors will be a fully-fledged `instanceof Error` with stack traces and everything. In addition to the `message` and `name` properties, instances of `HTTPError` will also include additional HTTP specific information:\n\n```javascript\nvar $http = require('http-as-promised'),\n    err =  new $http.error[505];\n\nconsole.log('Error:            ', err instanceof Error);\nconsole.log('HTTP Error:       ', err instanceof $http.error);\nconsole.log('HTTP 5xx Error:   ', err instanceof $http.error['5xx']);\nconsole.log('HTTP Server Error:', err instanceof $http.error['server']);\nthrow err;\n```\n\n```\nError:             true\nHTTP Error:        true\nHTTP 5xx Error:    true\nHTTP Server Error: true\nHTTPError: 505 HTTP Version Not Supported\n    at Object.<anonymous> (/test.js:2:7)\n    at Module._compile (module.js:456:26)\n    at Object.Module._extensions..js (module.js:474:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:312:12)\n    at Function.Module.runMain (module.js:497:10)\n    at startup (node.js:119:16)\n    at node.js:906:3\n{ [HTTPError: 505 HTTP Version Not Supported]\n  statusCode: 505,\n  title: 'HTTP Version Not Supported',\n  summary: 'server does not support the HTTP protocol version',\n  range: '5xx',\n  type: 'ServerError',\n  message: '505 HTTP Version Not Supported' }\n```\n\nWhen an `HTTPError` is the reason why a response was rejected by HTTP as Promised, it will include some additional properties:\n\n```javascript\nvar $http = require('http-as-promised'),\n    url = 'https://www.npm.org',\n    nock = require('nock')(url);\n\nnock.get('/bogus/url').reply(404, 'Cannot find /bogus/url');\n$http(url+'/bogus/url').catch(console.log);\n```\n\n```\n{ [HTTPError: 404 Not Found]\n  statusCode: 404,\n  title: 'Not Found',\n  summary: 'requested resource could not be found',\n  range: '4xx',\n  type: 'ClientError',\n  message: '404 Not Found',\n  body: 'Cannot find /bogus/url',\n  response: [Object: IncomingMessage]\n  options:\n   { error: true,\n     method: 'GET',\n     uri: 'https://www.npm.org/bogus/url' } }\n```\n\n## Catching HTTP Errors\n\nSince we're using Bluebird to construct our promises, handling specific HTTP Errors is a breeze using [`.catch()`](https://github.com/petkaantonov/bluebird/blob/master/API.md#catchfunction-errorclassfunction-predicate-function-handler---promise):\n\n```javascript\nvar $http = require('http-as-promised'),\n    url = 'https://stackoverflow.com',\n    nock = require('nock')(url);\n\nnock.get('/teapot').reply(418);\n$http(url+'/teapot')\n  .catch($http.error[418], function (e){\n    // Catch 418 I'm A Teapot HTTP Errors\n  })\n  .catch($http.error.client, function (e){\n    // Catch any remaining Client HTTP Errors\n  })\n  .catch($http.error['4xx'], function (e){\n    // An alias for $http.error.client\n  })\n  .catch($http.error, function (e){\n    // Catch any other HTTP Errors that weren't already caught\n  })\n  .catch(function (e){\n    // Catch any other type of Error\n  })\n```\n\nFor better stack traces you can enable bluebird's [`longStackTraces`](https://github.com/petkaantonov/bluebird/blob/master/API.md#promiselongstacktraces---void), as well as bluebird's other [error management configuration](https://github.com/petkaantonov/bluebird/blob/master/API.md#error-management-configuration) methods by calling them on HTTP as Promised:\n\n```javascript\n$http.longStackTraces();\nnock.get('/').reply(420);\ndenialOfService(url).catch(err);\n\nfunction denialOfService(url){\n  return $http(url);\n}\n```\n\n```\nHTTPError: 420 Enhance Your Calm\n    at Request.HTTP_RESPONSE [as _callback] (http.promise.js:73:25)\n    at Request.self.callback (node_modules/request/request.js:237:22)\n    at Request.EventEmitter.emit (events.js:98:17)\n    at Request.<anonymous> (node_modules/request/request.js:1146:14)\n    at Request.EventEmitter.emit (events.js:117:20)\n    at OutgoingMessage.<anonymous> (node_modules/request/request.js:1097:12)\n    at OutgoingMessage.EventEmitter.emit (events.js:117:20)\n    at node_modules/nock/lib/request_overrider.js:419:18\n    at Object._onImmediate (node_modules/nock/lib/request_overrider.js:438:9)\nFrom previous event:\n    at new Promise (node_modules/bluebird/js/main/promise.js:82:37)\n    at HTTP (http.promise.js:56:12)\n    at denialOfService (test.js:12:10)\n    at Object.<anonymous> (test.js:9:1)\n    at Module._compile (module.js:456:26)\n    at Object.Module._extensions..js (module.js:474:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:312:12)\n { [HTTPError: 420 Enhance Your Calm]\n   statusCode: 420,\n   title: 'Enhance Your Calm',\n   summary: 'Twitter rate limiting',\n   range: '4xx',\n   type: 'ClientError',\n   message: '420 Enhance Your Calm',\n   body: '',\n   options: { error: true, method: 'GET', uri: 'https://twitter.com' } }\n```\n\n## For those times you really just need request\n\nYou can directly access the request module used by the HTTP as Promised module:\n\n```javascript\nvar $http = require('http-as-promised');\n$http.request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))\n```\n\n[npm-image]: https://img.shields.io/npm/v/http-as-promised.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/http-as-promised\n[travis-image]: http://img.shields.io/travis/jcready/http-as-promised.svg?style=flat-square\n[travis-url]: https://travis-ci.org/jcready/http-as-promised\n[coveralls-image]: http://img.shields.io/coveralls/jcready/http-as-promised.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/jcready/http-as-promised?branch=master\n[dependencies-image]: https://img.shields.io/david/jcready/http-as-promised.svg?style=flat-square\n[dependencies-url]: https://david-dm.org/jcready/http-as-promised\n[codeclimate-image]: https://img.shields.io/codeclimate/github/jcready/http-as-promised.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/jcready/http-as-promised\n\n[bluebird]: https://www.npmjs.org/package/bluebird\n[request]: https://www.npmjs.org/package/request\n[create-error]: https://www.npmjs.org/package/create-error;\n","maintainers":[{"name":"apechimp","email":"apeherder@gmail.com"},{"name":"jcready","email":"jcready@gmail.com"}],"time":{"modified":"2022-06-18T22:08:58.696Z","created":"2014-09-19T17:46:27.018Z","0.0.1":"2014-09-19T17:46:27.018Z","0.0.2":"2014-09-19T18:33:39.790Z","0.0.3":"2014-09-19T19:01:13.344Z","0.0.4":"2014-09-20T06:27:04.075Z","0.0.5":"2014-09-20T23:44:33.031Z","0.0.6":"2014-09-20T23:45:52.468Z","0.0.7":"2014-09-20T23:47:16.879Z","0.0.8":"2014-09-21T03:38:15.537Z","0.0.9":"2014-09-21T06:31:30.559Z","0.0.10":"2014-09-21T06:52:03.945Z","0.0.11":"2014-09-21T20:47:23.823Z","0.0.12":"2014-09-21T20:50:30.639Z","0.1.0":"2014-09-22T04:03:29.231Z","1.0.0":"2015-03-06T04:18:25.539Z","1.1.0":"2015-08-13T17:51:45.264Z","1.2.0":"2018-01-12T17:21:22.446Z","2.0.0":"2018-01-12T17:24:50.851Z","2.0.1":"2018-01-12T17:57:08.393Z"},"homepage":"https://github.com/jcready/http-as-promised","repository":{"type":"git","url":"git+https://github.com/jcready/http-as-promised.git"},"author":{"name":"James Cready","email":"jcready@gmail.com","url":"http://stackoverflow.com/users/1397319/idbehold"},"bugs":{"url":"http://github.com/jcready/http-as-promised/issues"},"license":"MIT","readmeFilename":"README.md","users":{"miguelprovencio":true},"keywords":["errors","exceptions","throw","custom","util","utility","bluebird","promise","request","http","https","statusCode"]}