Tiny JSON-RPC is available from npm.
$ npm install tiny-jsonrpc
Tiny JSON-RPC includes a suite of unit tests, driven by Mocha. To run the tests in node:
$ make test
To run the tests in the browser:
$ make test-browser
Then load http://localhost:8080 in your browser.
The following make parameters are supported (defaults are in parentheses):
TEST_REPORTERthe Mocha reporter to use (dot)
TEST_PORTthe port to run the browser test web server on (8080)
TEST_TIMEOUTthreshold in ms to timeout a test (4000)
TEST_SLOWthreshold in ms to say a test is slow (2000)
TEST_ARGSAdditional arguments to pass through to Mocha
TEST_DEBUGPrint debug logging to the console (false)
Tiny JSON-RPC is made available under the MIT License.