Monkey
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
- Install git-hooks
- Execute
git hooks install
- Write source code
- Write unit test
- Create pull request