🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@aexol/syncano-middleware-in-socket

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aexol/syncano-middleware-in-socket

Load middleware stack from socket.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

name

Run middlewares from socket.

Description

Run middlewares defined in socket.yml.

Synopsis

Example usage:

import serve, {response} from '@aexol/syncano-middleware'
import {fromSocket} from '@aexol/syncano-middleware-in-socket'

export default ctx => serve(ctx, fromSocket(async (ctx, syncano) => {
  return response.json({})
}))

API

fromSocket(fn, [opts]) ⇒ HandlerFn

Kind: global function
Export:

ParamTypeDescription
fnHandlerFn

next function in chain

[opts]Object

extra options

[opts.paths]PathsType

socket info search override

Keywords

middleware

FAQs

Package last updated on 13 Apr 2018

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