package.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "_args": [
  3. [
  4. "koa-request@~1.0.0",
  5. "D:\\work\\im"
  6. ]
  7. ],
  8. "_from": "koa-request@>=1.0.0 <1.1.0",
  9. "_id": "koa-request@1.0.0",
  10. "_inCache": true,
  11. "_installable": true,
  12. "_location": "/koa-request",
  13. "_npmUser": {
  14. "email": "dion.olsthoorn@gmail.com",
  15. "name": "dionoid"
  16. },
  17. "_npmVersion": "1.3.22",
  18. "_phantomChildren": {},
  19. "_requested": {
  20. "name": "koa-request",
  21. "raw": "koa-request@~1.0.0",
  22. "rawSpec": "~1.0.0",
  23. "scope": null,
  24. "spec": ">=1.0.0 <1.1.0",
  25. "type": "range"
  26. },
  27. "_requiredBy": [
  28. "/"
  29. ],
  30. "_resolved": "https://registry.npmjs.org/koa-request/-/koa-request-1.0.0.tgz",
  31. "_shasum": "19343352479d2cb965d7aff0a802b1a06d408e16",
  32. "_shrinkwrap": null,
  33. "_spec": "koa-request@~1.0.0",
  34. "_where": "D:\\work\\im",
  35. "author": {
  36. "email": "dion.olsthoorn@gmail.com",
  37. "name": "Dion Olsthoorn"
  38. },
  39. "bugs": {
  40. "url": "https://github.com/dionoid/koa-request/issues"
  41. },
  42. "dependencies": {
  43. "request": "*"
  44. },
  45. "description": "wrapper to request library ready to use in koa",
  46. "devDependencies": {},
  47. "directories": {
  48. "example": "examples"
  49. },
  50. "dist": {
  51. "shasum": "19343352479d2cb965d7aff0a802b1a06d408e16",
  52. "tarball": "https://registry.npmjs.org/koa-request/-/koa-request-1.0.0.tgz"
  53. },
  54. "homepage": "https://github.com/dionoid/koa-request",
  55. "license": "MIT",
  56. "main": "./",
  57. "maintainers": [
  58. {
  59. "email": "dion.olsthoorn@gmail.com",
  60. "name": "dionoid"
  61. }
  62. ],
  63. "name": "koa-request",
  64. "optionalDependencies": {},
  65. "readme": "koa-request\n===========\n\nVery simple wrapper to the request library for use in koa. \nWraps the request lib as thunk-returning functions for use in kao's middleware generator-functions.\n\n\nTo install simply run:\n```bash\nnpm install koa-request\n```\n\nRequire koa first and will only work on node v0.11.7 or newer.\n\nYou must run node with --harmony flag (--harmony-generators works as well)\n\n```bash\nnode --harmony example.js\n```\n\nSimple example using koa-request in koa:\n\n```js\nvar koa = require('koa');\nvar request = require('koa-request');\n \nvar app = koa();\n\napp.use(function *() {\n\n\tvar options = {\n \turl: 'https://api.github.com/repos/dionoid/koa-request',\n\t headers: { 'User-Agent': 'request' }\n\t};\n\n\tvar response = yield request(options); //Yay, HTTP requests with no callbacks!\n\tvar info = JSON.parse(response.body);\n\n\tthis.body = 'my full name is ' + info.full_name;\n});\n\napp.listen(process.env.PORT || 8080);\n```",
  66. "readmeFilename": "README.md",
  67. "repository": {
  68. "type": "git",
  69. "url": "git+https://github.com/dionoid/koa-request.git"
  70. },
  71. "version": "1.0.0"
  72. }