Nostalgic Punchcard Missing
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

create-mock-middleware

0.0.5 • Public • Published

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/');

Install

npm i create-mock-middleware

DownloadsWeekly Downloads

1

Version

0.0.5

License

ISC

Unpacked Size

111 kB

Total Files

4

Last publish

Collaborators

  • avatar