
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
lambda-lambda-lambda
Advanced tools
AWS Lambda@Edge serverless application router.
Install package dependencies using NPM.
$ npm install lambda-lambda-lambda
'use strict';
// Load module.
const Router = require('lambda-lambda-lambda');
/**
* @see AWS::Serverless::Function
*/
exports.handler = (event, context, callback) => {
const {request, response} = event.Records[0].cf;
const router = new Router(request, response);
router.setPrefix('/api');
// Middleware (order is important).
router.use(function(req, res, next) {
if (req.method() === 'CONNECT') {
res.status(405).send();
} else {
next();
}
});
// Send root response.
router.get('/', function(req, res) {
res.status(501).send();
});
// .. everything else.
router.default(function(req, res) {
res.status(404).send();
});
callback(null, router.response());
};
Run ESLint on project sources:
$ npm run lint
Generate documentation using ESDoc:
$ npm run gendoc
Run Mocha integration tests:
$ npm run test
If you fix a bug, or have a code you want to contribute, please send a pull-request with your changes. (Note: Before committing your code please ensure that you are following the Node.js style guide)
This package is maintained under the Semantic Versioning guidelines.
This package is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
lambda-lambda-lambda is provided under the terms of the MIT license
AWS is a registered trademark of Amazon Web Services, Inc.
FAQs
AWS Lambda@Edge serverless application router.
The npm package lambda-lambda-lambda receives a total of 47 weekly downloads. As such, lambda-lambda-lambda popularity was classified as not popular.
We found that lambda-lambda-lambda demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.