All Projects → meituan → monkey

meituan / monkey

Licence: MIT License
Data mapping system

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Monkey NPM version build status Test coverage

Data mapping system

Installation

npm install --save monkeyjs

Usage

var Mock = require('monkeyjs');
// create mock with data directory
var mock = new Mock('./data-dir');
// get mock data by HTTP request
var data = mock.get({
    "uri": "/deal/123456",
    "method": "POST",
});

For implementation detail, see docs, for more example, see test.

More

  • test: npm test
  • coverage: npm run test-cov
  • benchmark: npm run benchmark

Contribute

  1. Install git-hooks
  2. Execute git hooks install
  3. Write source code
  4. Write unit test
  5. Create pull request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].