{"_id":"@aiir/lambda-proxy","_rev":"1-e1b1be9eb27878b38ad89ec3d3c8ccc9","name":"@aiir/lambda-proxy","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aiir/lambda-proxy","version":"1.0.0","author":{"name":"Andy Buckingham","email":"andy@aiir.com"},"description":"Simulates AWS API Gateway with Lambda proxy integration locally for development","main":"./lib/lambda-proxy","bin":{"lambda-proxy":"./bin/lambda-proxy.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/aiir/lambda-proxy.git"},"license":"MIT","dependencies":{"docker-lambda":"^0.15.3"},"devDependencies":{"eslint":"^5.5.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0"},"bugs":{"url":"https://github.com/aiir/lambda-proxy/issues"},"homepage":"https://github.com/aiir/lambda-proxy#readme","_id":"@aiir/lambda-proxy@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.10.0","_npmUser":{"name":"andybee","email":"andy@andybee.com"},"dist":{"integrity":"sha512-0hdRW7VyJDuby5CD1EcMkjroWO6vyyRGveGmGPtazgJtFYeyUYBPXp9lXxWguvYbqRV+KJqc9B6x+4QVymk5Pg==","shasum":"f7dffd2399364965f74899a78271c33cd391e324","tarball":"https://registry.npmjs.org/@aiir/lambda-proxy/-/lambda-proxy-1.0.0.tgz","fileCount":7,"unpackedSize":8829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbl99KCRA9TVsSAnZWagAA1oMP/3x5rNkVtBYOLmlyiV/s\nV7IOwghnw+rqsCvkZU1NNTDGnmfi8vxHVslMSWWiQIZfIYmItfE1R8JB5au/\nKuyAg5NVIionL+hDTOIfJS3FlSnB44NNQ/MJB4jX7qbiJUmbIbwS+jaI9kK0\nxLIwzwPhzjO4Jfo8Q9JH7o5oivgb2rRJUQbUyLZ7qfAiiOjzbu6hGvSo+Ee2\nm8Y9g0E5eqH5bViwoDgt9ylcJUl9cCtToCTSv21NfScXrhiJcYgOd4XYV5xG\nqpzs00WM9CnA6RLkpkNT/6z2NTr4PS66NFgY/4/eW9gXf0FXhisvRtqQQZd8\nvzmaKduMx9y1lVRxvIKFVSu8Vya4oiXw5qTJhzQCxYAzFF2H9lrW+po+k4Mw\n9ewL3h8cJF3WJjK0g8phOyWacds5Zi+KC39fkFDuNXMrVpW+o+k5pV5s2J1X\nyXpjY1pTWg+YAh16aNiloJMA/tedM1Z4uyxvpvJ4rJh4uCGILAo1+np2IF7F\n83SJ9MfU0U0Yak+E2r+b6UOTSFNS6K92JXcgX1SNjxf6rvDBaEvDOIJ6usS/\nSW2gotsiIbCLhcGZaisa/RY0OGd+G/hwmZiDPjlMQJZBD7cQ2qr2GWGtJi+l\n+V/JGLmzVvVoRQLseJzsFmOjKzBMPd0D3vo6oNcaiIvZWBR6B9bja2cbeBy/\nKocG\r\n=B1KL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6leFvywXsCDsu+IyoRWMfbI3f4E7jo/PUnHm9lj//uwIgBVxr4TuwpRTtiJKoygZ9QAVzrFRdG/hmnipXtz+aj1g="}]},"maintainers":[{"name":"andybee","email":"andy@andybee.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-proxy_1.0.0_1536679753664_0.4860463756511033"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-11T15:29:13.572Z","1.0.0":"2018-09-11T15:29:13.784Z","modified":"2022-04-04T12:17:58.954Z"},"maintainers":[{"name":"andybee","email":"andy@andybee.com"}],"description":"Simulates AWS API Gateway with Lambda proxy integration locally for development","homepage":"https://github.com/aiir/lambda-proxy#readme","repository":{"type":"git","url":"git+ssh://git@github.com/aiir/lambda-proxy.git"},"author":{"name":"Andy Buckingham","email":"andy@aiir.com"},"bugs":{"url":"https://github.com/aiir/lambda-proxy/issues"},"license":"MIT","readme":"# API Gateway Lambda Proxy\n\nSimulates AWS API Gateway with Lambda proxy integration locally for development.\n\nAll paths will proxied to the Lambda function as if the API Gateway stage is\nconfigured with a standard root and Proxy Resource (e.g. `{proxy+}`) both\nconfigured to use the same Lambda function.\n\nThe Lambda function is invoked via the `lambci/lambda` Docker container, to give\na runtime environment as close as possible to the real thing.\n\n## Requirements\n\nAs well as Node.js 8.10 or later, Docker must also be installed and running on\nthe same machine to run the Lambda emulation container.\n\n## Installation\n\nInstall the package globally so you can use it easily within your actual Lambda\nproject.\n\n```\n$ npm install -g @aiir\\lambda-proxy\n```\n\nThis will add a `lambda-proxy` executable to `PATH`.\n\n## Usage\n\nBy default, the script will attempt to start an HTTP server on port 3000 and for\nany incoming request execute a Node.js 8.10-based Lambda function called\n`handler` from index.js from the current directory:\n\n```\nlambda-proxy\n```\n\nYou can modify this behaviour through the following environment variables:\n\n<dl>\n  <dt><code>TASK_DIR</code></dt>\n  <dd>\n    Sets the path to the directory containing the Lambda script. Defaults to the\n    current directory.\n  </dd>\n  <dt><code>RUNTIME</code></dt>\n  <dd>\n    Allows you to set which Lambda runtime you want. This sets which Docker\n    container tag to use, refer to the\n    <a href=\"https://github.com/lambci/docker-lambda\">documentation</a>\n    for a full list of available tags. Defaults to <code>nodejs8.10</code>.\n  </dd>\n  <dt><code>HANDLER</code></dt>\n  <dd>\n    Changes the file and handler function, e.g. <code>index.myHandler</code>\n    uses the file <code>index.js</code> and the function <code>myHandler</code>.\n    Defaults to <code>index.handler</code>.\n  </dd>\n  <dt><code>STAGE</code></dt>\n  <dd>\n    Sets the API Gateway stage name included in the event object sent to the\n    Lambda function. Defaults to <code>development</code>.\n  </dd>\n  <dt><code>NETWORK</code></dt>\n  <dd>\n    Allows you to optionally override the default network of the Lambda function\n    execution Docker container, for example to link it with a container acting\n    as a VPN client.\n  </dd>\n</dl>\n\n## Authors\n\n- Created by [@andybee](https://twitter.com/andybee)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}