文件名称:mokd:可编程假API服务器
文件大小:23KB
文件格式:ZIP
更新时间:2024-02-24 11:34:59
mock api middleware koa express
莫德 可编程假API服务器。 - 要求 Node.js> = 8.9.0(我们强烈建议使用类似东西) npm或 安装 npm install mokd --save 用法 const { Server } = require ( 'mokd' ) ; const server = new Server ( { baseUrl : '' , //optional endpoints : [ { path : '/user/' , response : { id : 1 name : 'John Doe' }
【文件预览】:
mokd-master
----.gitignore(940B)
----package.json(1KB)
----.npmrc(15B)
----LICENSE(1KB)
----index.js(557B)
----.eslintrc.js(155B)
----README.md(12KB)
----tests()
--------.eslintrc.json(91B)
--------watcher.test.js(7KB)
--------index.test.js(924B)
--------connect.test.js(2KB)
--------koa.test.js(2KB)
--------utils.test.js(6KB)
--------server.test.js(15KB)
----.eslintignore(22B)
----lib()
--------cli.js(1KB)
--------watcher.js(1KB)
--------__mocks__()
--------utils.js(2KB)
--------connect.js(381B)
--------koa.js(364B)
--------server.js(2KB)
----.npmignore(74B)
----.yarnrc(15B)
----fixtures()
--------user.json(44B)
--------config.js(1KB)
----.editorconfig(281B)