jsnark

0.1.0 • Public • Published

node-jsnark

Run Benchmark.js tests from js files.

Install

> npm install -g jsnark

Usage

> jsnark [--async] <file> ...

Flags: --async: run tests asyncronously (default) --no-async: run tests synchronously

Example:

> jsnark test-file-1.js test-file-2.js

Example test file

var STR = "Hello World!";
 
module.exports = {
    'RegExp#test': function() {
        /o/.test(STR);
    },
    'String#indexOf': function() {
        STR.indexOf('o') > -1;
    }
};

Readme

Keywords

none

Package Sidebar

Install

npm i jsnark

Weekly Downloads

19

Version

0.1.0

License

MIT

Last publish

Collaborators

  • hakovala