MCPcopy
hub / github.com/nuysoft/Mock

github.com/nuysoft/Mock @1.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 1.0.0 ↗
144 symbols 348 edges 39 files 0 documented · 0%
README

Mock.js

Build Status

Mock.js is a simulation data generator to help the front-end to develop and prototype separate from the back-end progress and reduce some monotony particularly while writing automated tests.

The official site: http://mockjs.com

Features

  • Generate simulated data according to the data template
  • Provide request/response mocking for ajax requests
  • ~~Generate simulated data according to HTML-based templates~~

This library is loosely inspired by Elijah Manor's post Mocking Introduction, mennovanslooten/mockJSON, appendto/jquery-mockjax and victorquinn/chancejs.

Questions?

If you have any questions, please feel free to ask through New Issue.

Reporting an Issue

Make sure the problem you're addressing is reproducible. Use http://jsbin.com/ or http://jsfiddle.net/ to provide a test page. Indicate what browsers the issue can be reproduced in. What version of Mock.js is the issue reproducible in. Is it reproducible after updating to the latest version?

License

Mock.js is available under the terms of the MIT License.

Core symbols most depended-on inside this repo

doit
called by 99
test/test.mock.random.js
e
called by 64
src/mock/regexp/parser.js
valid
called by 31
src/mock/valid/valid.js
doit
called by 28
test/test.mock.valid.js
done
called by 18
src/mock/xhr/xhr.js
stringify
called by 12
test/test.mock.request.js
doit
called by 11
test/test.mock.schema.js
ascii
called by 8
src/mock/regexp/handler.js

Shape

Function 144

Languages

TypeScript100%

Modules by API surface

src/mock/regexp/parser.js116 symbols
src/mock/xhr/xhr.js9 symbols
test/test.mock.valid.js3 symbols
test/test.mock.request.js3 symbols
test/test.mock.random.js3 symbols
test/test.mock.spec.dtd.js2 symbols
test/test.mock.schema.js2 symbols
test/test.mock.mock.js1 symbols
src/mock/valid/valid.js1 symbols
src/mock/schema/schema.js1 symbols
src/mock/regexp/handler.js1 symbols
src/mock/random/text.js1 symbols

Dependencies from manifests, versioned

chai1.10.0 · 1×
commander* · 1×
gulp3.9.0 · 1×
gulp-connect* · 1×
gulp-coveralls0.1.4 · 1×
gulp-istanbul0.10.3 · 1×
gulp-jshint2.0.0 · 1×
gulp-mocha2.2.0 · 1×
gulp-mocha-phantomjs0.10.1 · 1×
jshint2.8.0 · 1×
jshint-stylish2.1.0 · 1×
webpack1.12.9 · 1×

For agents

$ claude mcp add Mock \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact