New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@codeinkit/express-routes

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

@codeinkit/express-routes

## Options * routes - required object with map of the routes * isAwsRoutes - default false, if this flag is true the object that pass to the flow will mimic aws object `{headers, body, pathParameters, queryStringParameters}` * port - default 8080

latest
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Flows-framework Express Based Routes

Options

  • routes - required object with map of the routes
  • isAwsRoutes - default false, if this flag is true the object that pass to the flow will mimic aws object {headers, body, pathParameters, queryStringParameters}
  • port - default 8080

Default object that pass to the flow {headers, body, params, query}

Usage

const flowsFramework = require('@codeinkit/flows-framework');
const restRoutes = require('@codeinkit/express-routes')
const routes = {
  'get route': 'flow/path'
};

(async () => {
  await flowsFramework.init(__dirname);

  await flowsFramework.addRoute(restRoutes({routes}))
})();

FAQs

Package last updated on 30 Aug 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