Skip to content

About

mock server with cli tool,use javascript mock files,generate mock api automatically according to directory structure

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

local-mock-server

A simple local mock server with cli tool

About

You can use it with Node.js API or CLI tool.

Install

$ npm i --save-dev local-mock-server

Example

CLI

serve mock files in 'mockdir' directory

mock -d mockdir

Node.js API

const mock = require('local-mock-serever')
mock('mockdir') // '/mock' directory by default

About

mock server with cli tool,use javascript mock files,generate mock api automatically according to directory structure

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages