nodejsfunction-plus
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Matt's Lambda Node.js Library


Stability: Experimental

This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.

This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production environments. Experimental APIs are not subject to the Semantic Versioning model.


This library provides constructs for Node.js Lambda functions. Well, ok, so AWS already does that with the @aws-cdk/aws-lambda-nodejs package.

All this CDK construct does it expose the same NodejsFunction construct as that other package, but I set the AWS_NODEJS_CONNECTION_REUSE_ENABLED for you. Why? Because it's a super great environment flag built into the AWS SDK which enables http keep-alive, and greatly improves performance.

Usage

This is a drop-in replacement:

 
//import {NodejsFunction} from '@aws-cdk/aws-lambda-nodejs';
import {NodejsFunction} from 'nodejsfunction-plus'
 
...
 
new NodejsFunction(this,'whatever',{});

Contributing

Just submit a PR.

Package Sidebar

Install

npm i nodejsfunction-plus

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

25.5 kB

Total Files

11

Last publish

Collaborators

  • matthewbonig