Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-serverless-micro

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-serverless-micro

Run [Micro](https://github.com/zeit/micro/) functions on AWS Lambda. A very thin layer for Micro functions that does two things:

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71
increased by7.58%
Maintainers
1
Weekly downloads
 
Created
Source

CI Coverage Status Dependencies

AWS Serverless Micro

Run Micro functions on AWS Lambda. A very thin layer for Micro functions that does two things:

  • Reshape an API Gateway event object to http.IncomingMessage
  • Marshall the returned http.ServerResponse to a Lambda Proxy object.

Inspired by awslabs/aws-serverless-express.

With Micro:

// The Micro function
$ cat my-api.js
module.exports = async () => 'Welcome to Micro'

// Running with `micro`
$ micro my-api.js
micro: Accepting connections on port 3000

With aws-serverless-micro:

// The Micro function
$ cat my-api.js
module.exports = async () => 'Welcome to Micro'

// Wrapped in `aws-serverless-micro`
$ cat lambda.js
module.exports = {
    handler: require('aws-serverless-micro')(require('./my-api')),
}

// Deploy `lambda.handler` with the tool of your choice

Install

$ yarn add aws-serverless-micro
$ npm install aws-serverless-micro

aws-serverless-micro targets Node.js v8.10 or higher as this is the version running on AWS Lambda.

Compatability

This libary is 100% compatible with the Micro API. The full Micro test suite is run against the library with 100% coverage.

  • micro.send
  • micro.sendError
  • micro.createError
  • micro.buffer
  • micro.text
  • micro.json

License

MIT

FAQs

Package last updated on 04 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc