12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {
- "_args": [
- [
- "koa-request@~1.0.0",
- "D:\\work\\im"
- ]
- ],
- "_from": "koa-request@>=1.0.0 <1.1.0",
- "_id": "koa-request@1.0.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/koa-request",
- "_npmUser": {
- "email": "dion.olsthoorn@gmail.com",
- "name": "dionoid"
- },
- "_npmVersion": "1.3.22",
- "_phantomChildren": {},
- "_requested": {
- "name": "koa-request",
- "raw": "koa-request@~1.0.0",
- "rawSpec": "~1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <1.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/koa-request/-/koa-request-1.0.0.tgz",
- "_shasum": "19343352479d2cb965d7aff0a802b1a06d408e16",
- "_shrinkwrap": null,
- "_spec": "koa-request@~1.0.0",
- "_where": "D:\\work\\im",
- "author": {
- "email": "dion.olsthoorn@gmail.com",
- "name": "Dion Olsthoorn"
- },
- "bugs": {
- "url": "https://github.com/dionoid/koa-request/issues"
- },
- "dependencies": {
- "request": "*"
- },
- "description": "wrapper to request library ready to use in koa",
- "devDependencies": {},
- "directories": {
- "example": "examples"
- },
- "dist": {
- "shasum": "19343352479d2cb965d7aff0a802b1a06d408e16",
- "tarball": "https://registry.npmjs.org/koa-request/-/koa-request-1.0.0.tgz"
- },
- "homepage": "https://github.com/dionoid/koa-request",
- "license": "MIT",
- "main": "./",
- "maintainers": [
- {
- "email": "dion.olsthoorn@gmail.com",
- "name": "dionoid"
- }
- ],
- "name": "koa-request",
- "optionalDependencies": {},
- "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```",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/dionoid/koa-request.git"
- },
- "version": "1.0.0"
- }
|