🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

appless-lambda

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appless-lambda

``` npm i -S appless-lambda ```

0.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

appless-lambda

npm i -S appless-lambda
const App = require("appless-lambda");
const httpMiddleware = require("appless-lambda/middlewares/httpMiddleware");

const hello = async ({ req, res }) => {
  const { params } = req;

  return res.json({ params, midUse: req.event.midUse });
};

const app = new App();

app.use(params => {
  params.event.midUse = true;
  return params;
});

app.use(httpMiddleware);

app.controller(hello);

module.exports.handler = app.start.bind(app);

FAQs

Package last updated on 07 Nov 2019

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