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

create-mock-middleware

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

create-mock-middleware

An express middleware that reads the umi mock

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

createMockMiddleware

Express umi mock middleware

use:

const express = require('express');
const path = require('path');
const getMockMiddleware = require('./index');
var app = express();

//Looking for the mock below the path
app.use(getMockMiddleware(path.join(__dirname, '/')));

app.listen(3000);
console.log('look in http://localhost:3000/');

Keywords

umi

FAQs

Package last updated on 16 Jul 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