Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-loadmill

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-loadmill

Express middleware to enable crowdsourced load simulations via loadmill.com

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by60%
Maintainers
1
Weekly downloads
 
Created
Source

Express Loadmill

Users of Loadmill can use this express middleware for:

  1. Quick and easy domain verification.
  2. Enabling CORS strictly from loadmill.com in order to perform crowdsourced load tests.

Installation

Using npm:

npm install express-loadmill --save

Using yarn:

yarn add express-loadmill

Usage

Use loadmill middleware before everything else (that should be exposed to testing):

var app = require('express')();
var Loadmill = require('express-loadmill');

app.use(Loadmill({verifyToken: process.env.LOADMILL_VERIFY_TOKEN}));

The above code enables both CORS and domain verification. You may optionally disable CORS by setting the enableCors option to false, e.g.

app.use(Loadmill({enableCors: false, verifyToken: process.env.LOADMILL_VERIFY_TOKEN}));

Note however that you will not be able to perform high-volume load tests with loadmill without enabling CORS.

Domain verification will only be enabled if you supply a verification token, thus the following code will only enable CORS:

app.use(Loadmill());

Learn More

Keywords

FAQs

Package last updated on 04 Jul 2017

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