{"_id":"lambda-restify","_rev":"11-a93790fcd50d85a7719a7fcff0c371a0","name":"lambda-restify","description":"A restify like interface for aws lambda with api gateway event source","dist-tags":{"latest":"2.0.5"},"versions":{"1.0.2":{"name":"lambda-restify","version":"1.0.2","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","lambda","restify"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"bd7df1a2501aba00d6013196b21393618c8035f4","_id":"lambda-restify@1.0.2","_shasum":"9ad91fe2f64bac53b7581216e1d8237626c7db1b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"9ad91fe2f64bac53b7581216e1d8237626c7db1b","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-1.0.2.tgz","integrity":"sha512-srh4CkUcB9M6pFJTz8pNnbfCMigOmI7g2HTFrgoFqs8GueFWdXTwOIS65hEzfiBjiS/ZiYUGYKZy33aFLpFxhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICaL3IcXojr1Nba/H+ZoYMPJEHeqinAC+MYh2C3QNoVzAiBQd64Ur3RLyLDB3fnZMKYRRB7TU/iPDpKNHzquIBg4+Q=="}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-1.0.2.tgz_1500967169968_0.6740832517389208"}},"1.0.3":{"name":"lambda-restify","version":"1.0.3","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"6e1306489a6bae678d5e2806e323f3a55d6a49c1","_id":"lambda-restify@1.0.3","_shasum":"83dae55bc456870008e766c680397bb7f0afa9f1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"83dae55bc456870008e766c680397bb7f0afa9f1","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-1.0.3.tgz","integrity":"sha512-gngZoRgMIql+h0OHPWjz6awshiZbDF1Sl04ObFaJhb1jLu5rtZCvf98CuePz8nuc8CBQw9kCshY16IAhj4uWYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhxXVYaxcDLx/p8HC3jesFEVKQbey93YiwKh5gw5+z6AiEA0QXliPTKq+FAIs8CKA1PlF3rFtEpX3DSFTaI22WJEhM="}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-1.0.3.tgz_1500976386356_0.7762702121399343"}},"1.0.4":{"name":"lambda-restify","version":"1.0.4","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"0e6e246f2c8b614c8539aac09b6bab9f738c521f","_id":"lambda-restify@1.0.4","_shasum":"0a25031ca5fdfd5a3b4374f960d00b2dacf4e78f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"0a25031ca5fdfd5a3b4374f960d00b2dacf4e78f","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-1.0.4.tgz","integrity":"sha512-mXHoO7w632DQBh9ff5n6m+x7YQiOS912Vkws+IN8OzNwIiXC5nFGPwqO24VcjHUDGS1RC3nK/DiLa/XB+0N88Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDakz+HvTH3ZFUmK4F5m0c4PQMArAW6wH47cTnUAG/0ygIhAOArYMet/MH28+SiTzaqkjoiGQ1TtVyZgOYLpUFux9u4"}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-1.0.4.tgz_1501043613904_0.13169344025664032"}},"1.0.5":{"name":"lambda-restify","version":"1.0.5","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"d6a86884791211d7c95d3ab40459f80996020f08","_id":"lambda-restify@1.0.5","_shasum":"41233087cd6a45ef0a713ecb0a27e09ee1dad6e7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"41233087cd6a45ef0a713ecb0a27e09ee1dad6e7","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-1.0.5.tgz","integrity":"sha512-MXnQzue9Ao1cMnJVGCsuTM+/xSS2d4VJp+B+Tj/99fTL0VTuTyCvkB7AN0dRBR635OQ2s9+LHlK3QMMd26vaIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCERaMTxh5aKvXAnB6mdJh8ggFGuvk+5vJY7Sq1ppv1hwIhAKrj0iPipoE1Ri74cXuvol9p1Bayb75Tm97vcjGv56oi"}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-1.0.5.tgz_1501143585748_0.25547774182632565"}},"2.0.1":{"name":"lambda-restify","version":"2.0.1","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"0acb81cde198d66356a1ddc9ea0113b1cd5d8b54","_id":"lambda-restify@2.0.1","_shasum":"ed00ee4549f39d95c7e2d64f7bb90ca62a567f15","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"ed00ee4549f39d95c7e2d64f7bb90ca62a567f15","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-2.0.1.tgz","integrity":"sha512-ubvQ1FYqjBSiEM0DAAdV2qH8W+L/xQd/43rTgYRkgdBf6lxbhfN4WKKroHvvWy3XT+slyyJ3OWbDETVg7leJhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2sUsFE0Nj/NYsigpN+o7zX9mkwKsEazLbHVt5dHM8mAiEA1C5gTtcGbkKbq1SExdTQ2yG0z94haUuz2m5manbcmds="}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-2.0.1.tgz_1501144487188_0.711572406347841"}},"2.0.2":{"name":"lambda-restify","version":"2.0.2","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"7ce50ab46f215ed3541b85d80d12373e61706c5a","_id":"lambda-restify@2.0.2","_shasum":"37e9b8a96437a1a00310acae6fee5d2f0fd56133","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"37e9b8a96437a1a00310acae6fee5d2f0fd56133","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-2.0.2.tgz","integrity":"sha512-elDF43YLmXOnUO/oe1ALOhcjMpV2TqXq+NYdJ50xiXEB67TmFwCsYdGVwLOLJx+5jYPOJ5pyYL2GNLWT7zgh6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6EhSpnHoHNQLqTanwicjGqnAwTyXERh6x54df/G7p4QIhAKQJKEae3aNl3PtyQ7jNzPfM1l4WtrH0ZgeC+CIpz7hb"}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-2.0.2.tgz_1501144642374_0.9768447675742209"}},"2.0.3":{"name":"lambda-restify","version":"2.0.3","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"14a270dc21401edc317cc4c29509576548af6f0a","_id":"lambda-restify@2.0.3","_shasum":"e6594f6d5835423087efdc84d15c8e302f6f867e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"e6594f6d5835423087efdc84d15c8e302f6f867e","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-2.0.3.tgz","integrity":"sha512-yN4INA9iKCc5EO8OZE24zg2KxGyz8rZJXVD2lHkEOUWWe11SrBroncLDyfI3iUbMMScoHRrdFvK51Bmk4mVnJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9nIlyZyi8JTewCsOu25n9hcI0hNCUzBpEs605RNnmpwIhALsn6tRttJvBI3v5uZo82rOv4hmbr5u4ATGprB1vJ4MV"}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-2.0.3.tgz_1501144943958_0.40964453271590173"}},"2.0.4":{"name":"lambda-restify","version":"2.0.4","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"4433fc6a9794438adae8d0121d7fcf77c367215b","_id":"lambda-restify@2.0.4","_shasum":"7876902fffd91f70b9e568e5a4870fce8ea8f44a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"7876902fffd91f70b9e568e5a4870fce8ea8f44a","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-2.0.4.tgz","integrity":"sha512-EK6TUw4KvAJ70QNFuHDbVkRoyIqtMW88rtq7KhpBHAfwlmfUK+Cic1KmLQbalVBt17EjHtigjWvmxv2heZCBmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGv4fJB/8AV8yqkGkHTQ+ZLQAevToDN6Ta9r7X9Gj7XZAiAcyoQLSJlfHEiBVz7YpqiUJU8RbrIKXPZ46vQdgIXLwQ=="}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-2.0.4.tgz_1502229024222_0.31923350086435676"}},"2.0.5":{"name":"lambda-restify","version":"2.0.5","description":"A restify like interface for aws lambda with api gateway event source","main":"build/index","types":"build/index","engines":{"node":">=6.10.0"},"scripts":{"prepublish":"npm run build","build":"tsc","test":"mocha -r ts-node/register src/**/*.spec.ts","testwatch":"mocha -r ts-node/register -w --watch-extensions ts src/**/*.spec.ts","lint":"tslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"keywords":["aws","lambda","aws lambda","restify","serverless"],"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"license":"MIT","bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","devDependencies":{"@types/assert-plus":"^1.0.3","@types/chai":"^3.5.2","@types/mime":"^1.3.1","@types/mocha":"^2.2.41","@types/once":"^1.3.28","@types/restify-errors":"^4.3.1","@types/semver":"^5.3.32","@types/uuid":"^3.0.0","chai":"^3.5.0","chai-shallow-deep-equal":"^1.4.6","mocha":"^3.3.0","nodemon":"^1.11.0","npm-run-series":"^1.0.0","ts-node":"^3.0.4","typescript":"^2.3.2"},"dependencies":{"assert-plus":"^1.0.0","mime":"^1.3.6","negotiator":"^0.6.1","once":"^1.4.0","restify-errors":"^4.3.0","semver":"^5.3.0","uuid":"^3.1.0"},"gitHead":"fde234bb5dc9f51681e825443b105c5b5308ecd7","_id":"lambda-restify@2.0.5","_shasum":"5b12574304f225efcf9475c27d74609e9c203462","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"kksharma1618","email":"kks@krishnakantsharma.com"},"dist":{"shasum":"5b12574304f225efcf9475c27d74609e9c203462","tarball":"https://registry.npmjs.org/lambda-restify/-/lambda-restify-2.0.5.tgz","integrity":"sha512-XnAY/eYZz4VoPOFpAaxz31IRof2UUJ4NRbOh+DpHe/OnRbgPZDYXwb/9l+mJ01rLkWQS+9DwuPvgwaUoMQQvSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5t6KA9vprCYUpBe/PXzdPdOGr2CHiLG+RnO7dtEQFwAIgIHbAyFIfBMW3MBgsSwV390oFuP3VnLGWf0r+x56xbfg="}]},"maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-restify-2.0.5.tgz_1508224320787_0.5207998955156654"}}},"readme":"# lambda-restify\n\n[![Build Status](https://travis-ci.org/kksharma1618/lambda-restify.svg?branch=master)](https://travis-ci.org/kksharma1618/lambda-restify)\n\nA [restify](http://restify.com/)/[expressjs](https://expressjs.com/) like interface for aws lambda with api gateway event.\n\n## Installation\n```\nnpm install --save lambda-restify\n```\n\n## What is it about\nIf you are writing [aws lambda function](https://aws.amazon.com/lambda/) to develop rest apis using [aws api gateway](https://aws.amazon.com/api-gateway/), this package will help you with request/response/routing/middlewares/versioned apis type features generally found in packages like restify or express.\n\nInstead of using http module for opening a server and listening for incoming requests, this package relies on lambda event and callback.\n\nWhen you make an http request against aws apigateway it triggers aws lambda with an event containing all the information about the incoming request (like method, url, querystring, headers, and body). lambda-restify relies on that information to create request object.\n\nWhen your route handler sends response back (including headers, content), lambda-restify triggers lambda callback.\n\n## Supported features\n- Full support for restify request/response api\n- Pre routing hooks \n- Middlewares\n- Routing\n- Versioned apis\n\n## Dependency\nIt requires node >= 6.10.0. Make sure you choose \"6.10.2\" or above while creating lambda function. At the time of writing lambda supports v4.3.2 and 6.10.2.\n\n## Getting started\n\n### Install the package\n```\nnpm install --save lambda-restify\n```\n### Create server\nSee list of supported options [here](https://github.com/kksharma1618/lambda-restify/blob/master/src/lib/server_options.ts).\n\n``` javascript\nconst Server = require('lambda-restify').default;\nconst server = new Server(options);\n```\n\nOr, if you are using imports\n\n``` javascript\nimport Server from 'lambda-restify';\nconst server = new Server(options);\n```\n\n### Attach your routes and middlewares\nSee [restify documentation](http://restify.com/docs/home/) for documentation on server.pre, server.use, server.get (and other http verbs). Since lambda-restify uses restify like interface all that docs apply here as well.\n\n``` javascript\nserver.pre(function(req, res, next) {\n    // this handler is run for all routes, even 404\n    \n    // do something here\n    next()\n})\n\nserver.use(function(req, res, next) {\n    // this handler is run for after routing is done \n    // and successful match is found (not on 404)\n\n    // do something here\n    next()\n})\n\nserver.post('/user/:id', function(req, res) {\n    \n    // headers available \n    const apiKey = req.header('apikey');\n    \n    // route param\n    const userId = req.params.id;\n    \n    // query string\n    const queryValue = req.query('queryKey')\n\n    // body\n    const name = req.body.name\n\n    // send response with res.json or res.send\n    res.json({\n        status: 1\n    })\n})\n\n// define other route handlers\n\n```\n\n### Attach lambda handler\n``` javascript\nexports.yourlambdaHandler = function(event, context, callback) {\n    server.handleLambdaEvent(event, context, callback)\n}\n```\n\n## Documentation\n\n**Note**<br />\nMost likely, you will need to set: \n``` javascript \ncontext.callbackWaitsForEmptyEventLoop = false \n```\nbefore calling server.handleLamdaEvent in your lamda handler. See [http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html](http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html) for details. \n\nSee [restify documentation](http://restify.com/docs/home/). Following items work just as they did in restify:\n- Request:\n    - headers\n    - url\n    - httpVersion\n    - method\n    - params\n    - body\n    - rawBody\n    - header(name: string, defaultValue: string)\n    - accepts(type: string | string[])\n    - acceptsEncoding(type: string | string[])\n    - getContentLength()\n    - contentLength() [alias of getContentLength]\n    - getContentType()\n    - contentType() [alias of getContentType]\n    - time()\n    - date()\n    - getQuery()\n    - query() [alias of getQuery()]\n    - getUrl()\n    - href()\n    - id(reqId?: string)\n    - getId()\n    - getPath()\n    - path() [alias of getPath]\n    - is(type: string)\n    - isSecure()\n    - isChunked()\n    - toString()\n    - userAgent()\n    - version()\n    - matchedVersion()\n    - trailer(name: string, value?: string) [no trailers support. it just pass back the default value]\n    - isKeepAlive()\n    - isUpload()\n- Response\n    - finished\n    - headersSent\n    - sendDate\n    - statusCode\n    - statusMessage\n    - serverName\n    - cache(type?: any, options?: any)\n    - noCache()\n    - header(name: string, value?: any)\n    - setHeader(name: string, value: any)\n    - getHeaders()\n    - headers() [alias of getHeaders]\n    - send(code?: number, body?: string | json, headers?: json)\n    - sendRaw(code?: number, body?: string | json, headers?: json)\n    - removeHeader(name: string)\n    - writeHead(code?, message?, headers?)\n    - write(chunk: string | Buffer, encoding?: string, callback?: any)\n    - end(data?: string | Buffer, encoding?: string, callback?)\n    - get(name: string)\n    - json(code?, body?, headers?)\n    - link(l, rel)\n    - charSet(type: string)\n    - redirect(...)\n    - status(code: number)\n    - set(name: string | object, val?: string)\n    - getHeaderNames()\n    - hasHeader(name: string)\n- Server\n    - pre(handlers)\n    - use(handlers)\n    - get(path?, options?, handlers)\n    - del(path?, options?, handlers)\n    - head(path?, options?, handlers)\n    - opts(path?, options?, handlers)\n    - post(path?, options?, handlers)\n    - put(path?, options?, handlers)\n    - patch(path?, options?, handlers)\n    - param(name, fn)\n    - versionedUse(versions: string | string[], fn)\n\n**Server.handleLambdaEvent(lambdaEvent, context, lambdaCallback)**<br />\nPlug this into lambda handler to route all incoming lambda events.\n","maintainers":[{"name":"kksharma1618","email":"kks@krishnakantsharma.com"}],"time":{"modified":"2022-06-19T10:27:18.553Z","created":"2017-07-25T07:19:30.085Z","1.0.2":"2017-07-25T07:19:30.085Z","1.0.3":"2017-07-25T09:53:06.443Z","1.0.4":"2017-07-26T04:33:34.098Z","1.0.5":"2017-07-27T08:19:45.829Z","2.0.1":"2017-07-27T08:34:47.474Z","2.0.2":"2017-07-27T08:37:22.501Z","2.0.3":"2017-07-27T08:42:24.157Z","2.0.4":"2017-08-08T21:50:24.286Z","2.0.5":"2017-10-17T07:12:00.956Z"},"homepage":"https://github.com/kksharma1618/lambda-restify#readme","keywords":["aws","lambda","aws lambda","restify","serverless"],"repository":{"type":"git","url":"git+https://github.com/kksharma1618/lambda-restify.git"},"author":{"name":"Krishna Kant Sharma","email":"kks@krishnakantsharma.com"},"bugs":{"url":"https://github.com/kksharma1618/lambda-restify/issues"},"license":"MIT","readmeFilename":"README.md","users":{"blforce":true}}