{
  "name": "runforcover",
  "version": "0.0.2",
  "description": "require plugin for js code coverage using bunker",
  "main": "index.js",
  "directories": {
    "lib": ".",
    "test": "test"
  },
  "dependencies": {
    "bunker": "0.1.X"
  },
  "scripts": {
    "test": "node test/index.js"
  },
  "repository": {
    "type": "git",
    "url": "http://github.com/chrisdickinson/node-runforcover.git"
  },
  "keywords": [
    "code",
    "coverage",
    "bunker"
  ],
  "author": {
    "name": "Chris Dickinson",
    "email": "chris@neversaw.us",
    "url": "http://neversaw.us"
  },
  "license": "new BSD",
  "engine": {
    "node": ">=0.4"
  },
  "readme": "runforcover\n======\n\nRunforcover is a require-hook library that uses node-bunker to provide code coverage data\nfor your unit test library, whatever it might be.\n\nmethods\n=======\nvar runforcover = require('runforcover');\n\nvar coverage = runforcover.cover([RegExp | path]);\n-------\n\nAttach runforcover to the global `require` object and patch `require.extensions['.js']` to\nprovide coverage metadata for all files required after this point. Returns a function\nobject that can be called to obtain a object keying files to `CoverageData` objects, with \na method for releasing control back to vanilla `require`. Usage:\n\n````javascript\n\nvar coverage = runforcover.cover(/.*/g);\n\nrequire('some/library');\n\ncoverage(function(coverageData) {\n    // coverageData is an object keyed by filename.\n    var stats = coverageData['/full/path/to/file.js'].stats()\n\n    // the percentage of lines run versus total lines in file\n    console.log(stats.percentage);\n\n    // the number of missing lines\n    console.log(stats.missing);\n\n    // the number of lines run (seen)\n    console.log(stats.seen);\n\n    // an array of line objects representing 'missed' lines\n    stats.lines;\n\n    stats.lines.forEach(function(line) {\n        // the line number of the line:\n        console.log(line.number);\n\n        // returns a string containing the source data for the line:\n        console.log(line.source());   \n    }); \n   \n    // return control back to the original require function\n    coverage.release(); \n});\n````\n\nlicense\n=======\nnew BSD.\n",
  "readmeFilename": "README.markdown",
  "bugs": {
    "url": "https://github.com/chrisdickinson/node-runforcover/issues"
  },
  "homepage": "https://github.com/chrisdickinson/node-runforcover",
  "_id": "runforcover@0.0.2",
  "_from": "runforcover@~0.0.2"
}
