wodax-create-mock-middleware

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

Package Sidebar

Install

npm i wodax-create-mock-middleware

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

8.21 kB

Total Files

3

Last publish

Collaborators

  • sunzhifeng