{"name":"cleanup-coverage-code","version":"0.0.0","description":"Cleanup ugly code added by code coverage tools during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/cleanup-coverage-code.git"},"keywords":[],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/cleanup-coverage-code/blob/master/license.md"},"dependencies":{"coverage-code-regex":"^1.0.0"},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"41d2d6912daf90956fcb8ffc05350032a49fffd9","bugs":{"url":"https://github.com/tunnckoCore/cleanup-coverage-code/issues"},"homepage":"https://github.com/tunnckoCore/cleanup-coverage-code","_id":"cleanup-coverage-code@0.0.0","_shasum":"9c207872e671f956c0cc41242b712257806eb7d1","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"9c207872e671f956c0cc41242b712257806eb7d1","tarball":"http://registry-npm.ywwl.com/cleanup-coverage-code/download/cleanup-coverage-code-0.0.0.tgz","integrity":"sha512-hr8gidixY46IPbMLG5vsf1Ug+LJDqme4HYPI0tUsVc3+jvfkjKLSA3thhiVb3zzWI10mbqQWIYaw7WhXJsxarQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWY7Jhe1U5kmwCFwXZHDPmDvQl9XaRkW7pvge4XbhIpgIhALxYnFUpKD+g9WYNVgJv1OpH3YJAJ+ivU1rRTYH2efCC"}],"size":4651,"noattachment":false,"key":"/cleanup-coverage-code/-/cleanup-coverage-code-0.0.0.tgz"},"directories":{},"readme":"## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]\n\n> Cleanup ugly code (like this `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`) added by code coverage tools during the test process.\n\n## Install\n```\nnpm i --save cleanup-coverage-code\nnpm test\n```\n\n\n## API\n> For more use-cases see the [tests](./test.js)\n\n### [cleanupCoverageCode](./index.js#L33)\n> Cleans up the given code from code added by coverage tools.\n\n- `<str>` **{String}** code to cleanup\n- `return` **{String}** cleaned code\n\n**Example:**\n\n```js\nvar cleanupCoverageCode = require('cleanup-coverage-code');\n\nvar fixture = \"var a=[1,2,3];__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;var b=123;\";\ncleanupCoverageCode(fixture);\n//=> 'var a=[1,2,3];var b=123;'\n\ncleanupCoverageCode('var a=[1,2,3];var b=123;');\n//=> 'var a=[1,2,3];var b=123;'\n```\n\n\n## Author\n**Charlike Mike Reagent**\n+ [gratipay/tunnckoCore][author-gratipay]\n+ [twitter/tunnckoCore][author-twitter]\n+ [github/tunnckoCore][author-github]\n+ [npmjs/tunnckoCore][author-npmjs]\n+ [more ...][contrib-more]\n\n\n## License [![MIT license][license-img]][license-url]\nCopyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  \nReleased under the [`MIT`][license-url] license.\n\n\n[npmjs-url]: http://npm.im/cleanup-coverage-code\n[npmjs-img]: https://img.shields.io/npm/v/cleanup-coverage-code.svg?style=flat&label=cleanup-coverage-code\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/cleanup-coverage-code?branch=master\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/cleanup-coverage-code.svg?style=flat\n\n[license-url]: https://github.com/tunnckoCore/cleanup-coverage-code/blob/master/license.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n\n[travis-url]: https://travis-ci.org/tunnckoCore/cleanup-coverage-code\n[travis-img]: https://img.shields.io/travis/tunnckoCore/cleanup-coverage-code.svg?style=flat\n\n[daviddm-url]: https://david-dm.org/tunnckoCore/cleanup-coverage-code\n[daviddm-img]: https://img.shields.io/david/tunnckoCore/cleanup-coverage-code.svg?style=flat\n\n[author-gratipay]: https://gratipay.com/tunnckoCore\n[author-twitter]: https://twitter.com/tunnckoCore\n[author-github]: https://github.com/tunnckoCore\n[author-npmjs]: https://npmjs.org/~tunnckocore\n\n[contrib-more]: http://j.mp/1stW47C\n[contrib-graf]: https://github.com/tunnckoCore/cleanup-coverage-code/graphs/contributors\n\n***\n\n_Powered and automated by [kdf](https://github.com/tunnckoCore), February 4, 2015_","publish_time":1422403616473,"_cnpm_publish_time":1422403616473,"dist-tags":{"latest":"1.0.3"}}