New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parrot-middleware

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parrot-middleware

An Express middleware implementation of Parrot.

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
758
increased by26.76%
Maintainers
3
Weekly downloads
 
Created
Source

parrot-middleware

parrot-middleware is an implementation of Parrot that can be used as an Express middleware.

Example

import express from 'express';
import parrot from 'parrot-middleware';
import scenarios from './scenarios';

const app = express();

app.use(parrot(scenarios));

app.listen(3000);

Once the server is running, the following endpoints are exposed to interact with your scenarios:

GET /parrot/scenario

Responds with the name of the currently active scenario.

POST /parrot/scenario

Sets the currently active scenario.

GET /parrot/scenarios

Responds with an array of scenario objects.

FAQs

Package last updated on 20 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc