{"name":"covert","version":"0.4.0","description":"code coverage command con coverify","bin":{"covert":"bin/cmd.js"},"dependencies":{"browserify":"^3.41.0","coverify":"~1.0.0","parents":"~0.0.2","resolve":"~0.6.1","minimist":"~0.0.5"},"repository":{"type":"git","url":"git://github.com/substack/covert.git"},"homepage":"https://github.com/substack/covert","keywords":["code","coverage","coverify","instrumentation"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"engines":{"node":">= 0.6"},"license":"MIT","bugs":{"url":"https://github.com/substack/covert/issues"},"_id":"covert@0.4.0","dist":{"shasum":"57e364e6b584bca7e3cf4ec97a7471a69db07cd3","tarball":"http://registry-npm.ywwl.com/covert/download/covert-0.4.0.tgz","integrity":"sha512-ImuX1vnv1HMWAcoplEZtBusHOe3+rZbTo6CFo2RE+XZff4fzmPbaEALxpLK1YYouqIlLqeASUj8bl2IJx6OQKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPgZVAWLeHuHWrMvROo571aj7TEVb9tG30AZ4BMGrJ9wIgWmVhr8+VxKP2LKz8I3YkjF9FvT3qq5E6zdoC0yfyzpQ="}],"size":3148,"noattachment":false,"key":"/covert/-/covert-0.4.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{},"readme":"# covert\n\ncode coverage command\n\n# example\n\nJust run `covert` on some ordinary files:\n\n```\n$ covert test/*.js\nTAP version 13\n# defined-or\nok 1 empty arguments\nok 2 1 undefined\nok 3 2 undefined\nok 4 4 undefineds\nok 5 false[0]\nok 6 false[1]\nok 7 zero[0]\nok 8 zero[1]\nok 9 first arg\nok 10 second arg\nok 11 third arg\n# (anonymous)\nok 12 should be equal\n\n1..12\n# tests 12\n# pass  12\n\n# ok\n\n# /home/substack/projects/defined/index.js: line 3, column 18-26\n\n  if (false) dead();\n             ^^^^^^^\n\n# /home/substack/projects/defined/index.js: line 6, column 16-18, 19-25, 26-30, 31-51\n\n  for (var i = 0; i < 5; i++) console.log('blah');\n               ^  ^^^^^  ^^^  ^^^^^^^^^^^^^^^^^^^\n\n# /home/substack/projects/defined/index.js: line 10, column 3-24\n\n  console.log('blah');\n  ^^^^^^^^^^^^^^^^^^^^\n\n# coverage: 76/82 (92.68 %)\n\nnon-zero exit code in `coverify` command\n```\n\nIn this example, this test suite is using\n[tape](https://npmjs.org/package/tape). Tests written with tape can just be run\ndirectly using `node`, which fits very well with what this command expects.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install -g covert\n```\n\n# usage\n\n```\nusage: covert {OPTIONS} FILES\n\n  Instrument FILES and in-module dependencies, writing coverage data to STDERR.\n\n  OPTIONS are:\n\n    --json\n\n      Suppress normal output and print json coverage data to stdout.\n\n    -q, --quiet  \n\n      Only print coverage data, suppressing all other output.\n\n    -c, --color\n\n      Use color in the output. Default: true if stdout is a TTY.\n\n```\n\n# why\n\nMost code coverage libraries do weird things I don't like, such as writing all\ntheir junk to directories and files in a completely out-of-band way.\n\ncovert:\n\n* only uses stderr and stdout, doesn't write to any files.\nAll of this business about `lcov` files and directories with reports in them\nreally weirds me out.\n\n* bundles with `browserify --bare` and a transform instead of hijacking\n`require()`. All the reporting goes through a unix pipeline on process.stdin and\nprocess.stdout. This is still hacky, but it's the kind of hacky that you can fix\nyourself when the magic breaks down. The internal pipeline is just:\n\n```\nbrowserify -t coverify --bare $* | node | coverify\n```\n\n* works really well with simple unix pipelines.\nstdin and stdout: the wisdom of the ancients.\n\n# license\n\nMIT\n","publish_time":1397207002223,"_cnpm_publish_time":1397207002223,"dist-tags":{"latest":"1.1.1"}}