{"_id":"req-then","_rev":"335013","name":"req-then","description":"Simple http(s) request function, returning a promise. ","dist-tags":{"latest":"0.6.4"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-08T13:16:00.000Z","created":"2015-10-25T16:28:23.059Z","0.6.4":"2017-06-29T11:27:13.017Z","0.6.3":"2017-06-29T11:21:49.658Z","0.6.2":"2017-06-18T12:09:56.911Z","0.6.1":"2017-02-18T20:26:09.209Z","0.6.0":"2017-02-18T20:21:05.187Z","0.5.1":"2016-11-01T21:35:48.664Z","0.5.0":"2016-09-19T19:38:20.992Z","0.4.1":"2016-08-23T21:18:26.050Z","0.4.0":"2016-08-23T20:41:59.688Z","0.3.4":"2016-08-07T19:51:00.405Z","0.3.3":"2016-07-14T21:58:32.511Z","0.3.2":"2016-07-14T21:27:36.429Z","0.3.1":"2016-07-14T20:41:51.116Z","0.3.0":"2016-07-14T20:16:34.016Z","0.2.4":"2015-11-25T20:54:40.647Z","0.2.3":"2015-11-23T14:16:49.681Z","0.2.2":"2015-10-25T17:22:37.691Z","0.2.1":"2015-10-25T16:35:09.941Z","0.2.0":"2015-10-25T16:28:23.059Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"versions":{"0.6.4":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.6.4","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"lib/req-then.js","license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js -l js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"dependencies":{"array-back":"^2.0.0","defer-promise":"^1.0.1","lodash.pick":"^4.4.0","stream-read-all":"^0.1.0","typical":"^2.6.1"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"1d7997054d6634702b5046e4eaf9e8e703705367","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.6.4","_npmVersion":"5.0.4","_nodeVersion":"8.1.2","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"9f9c04626afd311ae01d727846a0a1075c0e1965","size":29704,"noattachment":false,"key":"/req-then/-/req-then-0.6.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.6.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/req-then-0.6.4.tgz_1498735631921_0.5842474256642163"},"directories":{},"publish_time":1498735633017,"_hasShrinkwrap":false,"_cnpm_publish_time":1498735633017},"0.6.3":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.6.3","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"lib/req-then.js","license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js -l js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"dependencies":{"array-back":"^2.0.0","defer-promise":"^1.0.1","lodash.pick":"^4.4.0","stream-read-all":"^0.1.0","typical":"^2.6.1"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"43ae4b12bcb65ffd86b0d002d084630d147fb001","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.6.3","_npmVersion":"5.0.4","_nodeVersion":"8.1.2","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"8327fe309e1bddc33dab7d982ad0063ab09fd016","size":29696,"noattachment":false,"key":"/req-then/-/req-then-0.6.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.6.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/req-then-0.6.3.tgz_1498735308598_0.3884224696084857"},"directories":{},"publish_time":1498735309658,"_cnpm_publish_time":1498735309658,"_hasShrinkwrap":false},"0.6.2":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.6.2","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"lib/req-then.js","license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js -l js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"dependencies":{"array-back":"^1.0.4","defer-promise":"^1.0.1","lodash.pick":"^4.4.0","stream-read-all":"^0.1.0","typical":"^2.6.1"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"b47ff7415fccd0b01767da997e6cf8ffec708859","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.6.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7f9e6ebbcab327adc9280aa92b3698d3fc1c5b0d","size":29494,"noattachment":false,"key":"/req-then/-/req-then-0.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.6.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/req-then-0.6.2.tgz_1497787795840_0.06812083162367344"},"directories":{},"publish_time":1497787796911,"_hasShrinkwrap":false,"_cnpm_publish_time":1497787796911},"0.6.1":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.6.1","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"lib/req-then.js","license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.4","defer-promise":"^1.0.1","lodash.pick":"^4.4.0","typical":"^2.6.0"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"^0.3.0"},"gitHead":"70fde4c4ce64e646ee551e35d0f855be4805a32e","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.6.1","_shasum":"e85af6b939ffcc4b4f145b7e51cae73e8f8052c9","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"e85af6b939ffcc4b4f145b7e51cae73e8f8052c9","size":3716,"noattachment":false,"key":"/req-then/-/req-then-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.6.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/req-then-0.6.1.tgz_1487449568547_0.7859311767388135"},"directories":{},"publish_time":1487449569209,"_cnpm_publish_time":1487449569209,"_hasShrinkwrap":false},"0.6.0":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.6.0","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"lib/req-then.js","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.4","defer-promise":"^1.0.1","lodash.pick":"^4.4.0","typical":"^2.6.0"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"^0.3.0"},"gitHead":"4bb6dfed877400dcdc03f3573b86fa3d8b78ab75","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.6.0","_shasum":"8091b0ceb4a65d3c389b336b65e9e78800c4b06e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"8091b0ceb4a65d3c389b336b65e9e78800c4b06e","size":3732,"noattachment":false,"key":"/req-then/-/req-then-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.6.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.6.0.tgz_1487449263130_0.6350967455655336"},"directories":{},"publish_time":1487449265187,"_cnpm_publish_time":1487449265187,"_hasShrinkwrap":false},"0.5.1":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.5.1","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"index","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","feature-detect-es6":"^1.3.1","lodash.pick":"^4.4.0","typical":"^2.6.0"},"devDependencies":{"babel-preset-es2015":"^6.18.0","jsdoc-to-markdown":"^2.0.1","test-runner":"^0.2.5"},"standard":{"ignore":["es5"]},"gitHead":"eab6393cf04c87897a36982517c07e6580d604c6","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.5.1","_shasum":"31c6e0b56f4ddd2acd6de0ba1bcea77b6079dfdf","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"31c6e0b56f4ddd2acd6de0ba1bcea77b6079dfdf","size":4447,"noattachment":false,"key":"/req-then/-/req-then-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.5.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.5.1.tgz_1478036146901_0.6152960355393589"},"directories":{},"publish_time":1478036148664,"_cnpm_publish_time":1478036148664,"_hasShrinkwrap":false},"0.5.0":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.5.0","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"index","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","feature-detect-es6":"^1.3.1","lodash.pick":"^4.4.0","typical":"^2.6.0"},"devDependencies":{"babel-preset-es2015":"^6.14.0","jsdoc-to-markdown":"^2.0.0-alpha.11"},"gitHead":"ccbb6ef7fa2a4be4ccab769b22f362b8e25206e5","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.5.0","_shasum":"01995bb8fd42696b6f17e7597d815db5dc46948d","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"01995bb8fd42696b6f17e7597d815db5dc46948d","size":4286,"noattachment":false,"key":"/req-then/-/req-then-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.5.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.5.0.tgz_1474313899063_0.8711310573853552"},"directories":{},"publish_time":1474313900992,"_cnpm_publish_time":1474313900992,"_hasShrinkwrap":false},"0.4.1":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.4.1","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"index","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","feature-detect-es6":"^1.3.1","lodash.pick":"^4.4.0","typical":"^2.5.0"},"devDependencies":{"babel-preset-es2015":"^6.13.2","jsdoc-to-markdown":"^2.0.0-alpha.11"},"gitHead":"7bcf4393a7dc75907707d7312f1e5c67ca5f826b","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.4.1","_shasum":"ededf2931668b81f9c55edcf079645dccf310a9e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"ededf2931668b81f9c55edcf079645dccf310a9e","size":4240,"noattachment":false,"key":"/req-then/-/req-then-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.4.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.4.1.tgz_1471987104325_0.18463302799500525"},"directories":{},"publish_time":1471987106050,"_cnpm_publish_time":1471987106050,"_hasShrinkwrap":false},"0.4.0":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.4.0","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"index","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","feature-detect-es6":"^1.3.1","lodash.pick":"^4.4.0","typical":"^2.5.0"},"devDependencies":{"babel-preset-es2015":"^6.13.2","jsdoc-to-markdown":"^2.0.0-alpha.11"},"gitHead":"4e0660955631d99d9bf2dbe4ce4022055ce3622e","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.4.0","_shasum":"464b35346464a2b1dcf0f5bdf7189a4cf2bfe063","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"464b35346464a2b1dcf0f5bdf7189a4cf2bfe063","size":4226,"noattachment":false,"key":"/req-then/-/req-then-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.4.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.4.0.tgz_1471984917636_0.35656607267446816"},"directories":{},"publish_time":1471984919688,"_cnpm_publish_time":1471984919688,"_hasShrinkwrap":false},"0.3.4":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.4","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"index","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","feature-detect-es6":"^1.3.1","lodash.pick":"^4.2.1","typical":"^2.4.2"},"devDependencies":{"babel-preset-es2015":"^6.13.2","jsdoc-to-markdown":"^1.3.6"},"gitHead":"6c332cd869d58ab08d3558d6e71ed20a05fe3334","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.3.4","_shasum":"7d4f42ab116b4e509928b2180f0b848952aae1c4","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7d4f42ab116b4e509928b2180f0b848952aae1c4","size":3995,"noattachment":false,"key":"/req-then/-/req-then-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.3.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/req-then-0.3.4.tgz_1470599458470_0.08710780926048756"},"directories":{},"publish_time":1470599460405,"_cnpm_publish_time":1470599460405,"_hasShrinkwrap":false},"0.3.3":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.3","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","lodash.pick":"^4.2.1","typical":"^2.4.2"},"devDependencies":{"jsdoc-to-markdown":"^1.3.6"},"gitHead":"c04a4eff4e43d3ae5c385abd1c2c115a0be1810e","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.3.3","_shasum":"3e867a680a247336979348ca0046e137e776b4ef","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"3e867a680a247336979348ca0046e137e776b4ef","size":3571,"noattachment":false,"key":"/req-then/-/req-then-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.3.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.3.3.tgz_1468533510107_0.4710455625317991"},"directories":{},"publish_time":1468533512511,"_cnpm_publish_time":1468533512511,"_hasShrinkwrap":false},"0.3.2":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.2","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","lodash.pick":"^4.2.1","typical":"^2.4.2"},"devDependencies":{"jsdoc-to-markdown":"^1.3.6"},"gitHead":"e47ef5acbb6e4226633a88cfddbf27907f668bad","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.3.2","_shasum":"082135b59e1b1b5d4ddc0efe00cb93b90d785921","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"082135b59e1b1b5d4ddc0efe00cb93b90d785921","size":3572,"noattachment":false,"key":"/req-then/-/req-then-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.3.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.3.2.tgz_1468531653930_0.09168459381908178"},"directories":{},"publish_time":1468531656429,"_cnpm_publish_time":1468531656429,"_hasShrinkwrap":false},"0.3.1":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.1","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","lodash.pick":"^4.2.1","typical":"^2.4.2"},"devDependencies":{"jsdoc-to-markdown":"^1.3.6"},"gitHead":"9592d4b60e3c893ff62dc22256343f9a360053ba","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.3.1","_shasum":"62d9520acccf905086543caeb367de66bcd4c162","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"62d9520acccf905086543caeb367de66bcd4c162","size":3579,"noattachment":false,"key":"/req-then/-/req-then-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.3.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/req-then-0.3.1.tgz_1468528908586_0.4111403317656368"},"directories":{},"publish_time":1468528911116,"_cnpm_publish_time":1468528911116,"_hasShrinkwrap":false},"0.3.0":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.0","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"req-then":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"array-back":"^1.0.3","defer-promise":"^1.0.0","lodash.pick":"^4.2.1","then-fs":"^2.0.0","typical":"^2.4.2"},"devDependencies":{"jsdoc-to-markdown":"^1.3.6"},"gitHead":"d73e4597719976a451731b7a9aba19ff9c6ec6e5","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.3.0","_shasum":"1fa88a33802a0be6acf4bc46aea2c0e02f539d10","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1fa88a33802a0be6acf4bc46aea2c0e02f539d10","size":3707,"noattachment":false,"key":"/req-then/-/req-then-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.3.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-then-0.3.0.tgz_1468527391497_0.2114610478747636"},"directories":{},"publish_time":1468527394016,"_cnpm_publish_time":1468527394016,"_hasShrinkwrap":false},"0.2.4":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.4","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"request":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"defer-promise":"^0.1.0","object-tools":"^2","typical":"^2.4.0"},"devDependencies":{"jsdoc-to-markdown":"^1.2.0"},"gitHead":"b532cc53d7656fd7cd612b628a0f50641a3d2cdf","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.2.4","_shasum":"95883868a24fba1beb99aadc4b809698b335ce26","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"95883868a24fba1beb99aadc4b809698b335ce26","size":3747,"noattachment":false,"key":"/req-then/-/req-then-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.2.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1448484880647,"_cnpm_publish_time":1448484880647,"_hasShrinkwrap":false},"0.2.3":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.3","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"request":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"defer-promise":"^0.1.0","object-tools":"^2","typical":"^2.4.0"},"devDependencies":{"jsdoc-to-markdown":"^1.2.0"},"gitHead":"72436ab8c1d12cc17fcb6a50ac8aaea9b6cd7773","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.2.3","_shasum":"fa544662d66b6f8e132d673e73d42cb4fca899d0","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"fa544662d66b6f8e132d673e73d42cb4fca899d0","size":3741,"noattachment":false,"key":"/req-then/-/req-then-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.2.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1448288209681,"_cnpm_publish_time":1448288209681,"_hasShrinkwrap":false},"0.2.2":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.2","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"request":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"defer-promise":"^0.1.0","object-tools":"^2"},"devDependencies":{"jsdoc-to-markdown":"^1.2.0"},"gitHead":"9be6cf2fb097e4335422cca02846786324ee1439","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.2.2","_shasum":"2a55b7f279415c1154abd9c6e986af10b21642f4","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2a55b7f279415c1154abd9c6e986af10b21642f4","size":3482,"noattachment":false,"key":"/req-then/-/req-then-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.2.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1445793757691,"_cnpm_publish_time":1445793757691,"_hasShrinkwrap":false},"0.2.1":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.1","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"request":"bin/cli.js"},"license":"MIT","keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"object-tools":"^2"},"devDependencies":{"jsdoc-to-markdown":"^1.2.0"},"gitHead":"4a3e6179105d840b5d759f49a069e407d447febc","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.2.1","_shasum":"718d88341d6386e6b0270ba8d09516f293601c2f","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"718d88341d6386e6b0270ba8d09516f293601c2f","size":3549,"noattachment":false,"key":"/req-then/-/req-then-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.2.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1445790909941,"_cnpm_publish_time":1445790909941,"_hasShrinkwrap":false},"0.2.0":{"name":"req-then","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.0","description":"Simple http(s) request function, returning a promise. ","repository":{"type":"git","url":"git+https://github.com/75lb/req-then.git"},"main":"./lib/req-then.js","bin":{"request":"bin/cli.js"},"keywords":["http","https","request","promise","then","req","es6","native"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md lib/*.js -l js > README.md; echo","start":"node test/interactive/server.js"},"dependencies":{"object-tools":"^2"},"devDependencies":{"jsdoc-to-markdown":"^1.2.0"},"gitHead":"b0e98c59fb0ba9920319cc88fd17e8881f6e4747","bugs":{"url":"https://github.com/75lb/req-then/issues"},"homepage":"https://github.com/75lb/req-then#readme","_id":"req-then@0.2.0","_shasum":"7eabcabaa0ca939d9cb77e35ba6278970bea57ae","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7eabcabaa0ca939d9cb77e35ba6278970bea57ae","size":2570,"noattachment":false,"key":"/req-then/-/req-then-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-then/download/req-then-0.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1445790503059,"_cnpm_publish_time":1445790503059,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/req-then.svg)](https://www.npmjs.org/package/req-then)\n[![npm module downloads](http://img.shields.io/npm/dt/req-then.svg)](https://www.npmjs.org/package/req-then)\n[![Dependency Status](https://david-dm.org/75lb/req-then.svg)](https://david-dm.org/75lb/req-then)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/req-then/badge.svg)](https://coveralls.io/github/75lb/req-then)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_req-then\"></a>\n\n## req-then\nWraps node's built-in http(s) `request` function with a few extras:\n\n- Returns a promise, resolving to an object containing the data, node response and original request.\n- Automatically selects `http` or `https` transport depending on the input URL.\n- Cancellable (which `fetch` is not).\n\n**Example**  \n```js\nconst request = require('req-then')\n\nrequest('http://www.bbc.co.uk')\n  .then(response => {\n    console.log('Response data received', response.data)\n    console.log('The original request options', response.req)\n    console.log('The nodejs response instance', response.res)\n  })\n  .catch(console.error)\n```\n**Example**  \n```js\nconst request = require('req-then')\nconst url = require('url')\nconst reqOptions = url.parse('http://www.bbc.co.uk')\nconst controller = {}\nreqOptions.controller = controller\nrequest(reqOptions)\n  .then(response => {\n    console.log('Response data received', response.data)\n  })\n\n// kill the request and close the socket\ncontroller.abort()\n```\n<a name=\"exp_module_req-then--request\"></a>\n\n### request(reqOptions, [data]) ⇒ <code>external:Promise</code> ⏏\nReturns a promise for the response.\n\n**Kind**: Exported function  \n**Resolve**: <code>object</code> - `res` will be the node response object, `data` will be the data, `req` the original request.  \n**Reject**: <code>Error</code> - If aborted, the `name` property of the error will be `aborted`.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| reqOptions | <code>string</code> \\| <code>object</code> | Target url string or a standard node.js http request options object. |\n| [reqOptions.controller] | <code>object</code> | If supplied, an `.abort()` method will be created on it which, if invoked, will cancel the request. Cancelling will cause the returned promise to reject with an `'aborted'` error. |\n| [data] | <code>\\*</code> | Data to send with the request. |\n\n\n* * *\n\n&copy; 2015-17 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/req-then#readme","bugs":{"url":"https://github.com/75lb/req-then/issues"},"license":"MIT"}