/monkey

Data mapping system

Primary LanguageJavaScriptMIT LicenseMIT

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