jsmocktool supports browers and node.js. Browser compatibility is IE9+, chrome(newest), safari(newest), opera(newest), firefox(newest) and Node.js 0.10+.
npm install jsmocktool --save-devbower install jsmocktool --save-dev
or You can build using grunt.
git clonecd jsmocktoolnpm installgrunt
jsmocktool support es6 and global. If you use
mock is expose to global.
// ES6 Style// insert script
API is very simple.
The MIT License