rollup-plugin-node-mock-server
v0.4.0
Published
Rollup plugin to run node-mock-server both as server and as mock api
Downloads
11
Maintainers
Readme
Rollup Plugin to run node-mock-server
Rollup plugin to start node-mock-server in a rollup project.
The node-mock-server serves the static resources of your project and features a file-based api mock. The api mock can use plain files as responses, but it can also generate templated responses which take parameters and can evaluate custom functions to build the output. A middleware hook allows to define even more dynamic responses.
The server comes with a UI where developers can conveniently edit resources and choose which success or error response the API should return at runtime.
You can also import your mock api from a Swagger (OpenAPI) specification.
Readme
Please see the project homepage for the README.
It is written in AsciiDoc but npmjs.com doesn't support AsciiDoc yet.
License
The MIT License (MIT). Please see License File for more information.