Nonviolent Pigeon Manifestation

npm

Need private packages and team management tools?Check out npm Orgs. »

aws-lambda-http-server

0.1.13 • Public • Published

aws-lambda-http-server

Call your http server stack code using an in memory http listener. No sockets needed.

js-standard-style build status downloads Greenkeeper badge

server.js

require('http').createServer((req, res) => {
  if (req.url === '/hello') return res.end('world')
})
.listen(5000)

aws-lambda.js

exports.proxy = require('aws-lambda-http-server')
require('./server.js')

serverless.yml

service: test
provider:
  name: aws
  runtime: nodejs8.10
  endpointType: edge
  region: eu-west-1
functions:
  proxy:
    handler: aws-lambda.proxy
    environment:
      PORT: 5000
      BINARY_SUPPORT: 'no'
    events:
      http:
          path: /{proxy+}
          method: any
      http:
          path: ''
          method: any

license

Apache License, Version 2.0

install

npm i aws-lambda-http-server

Downloadsweekly downloads

15

version

0.1.13

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability