{"name":"cleanup-coverage-code","version":"1.0.2","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":["clean","cleans","cleanup","cleanups","code","codes","cov","coverage","coverages","coveralls","during","express","expression","expressions","function","functions","istanbul","lib","lib-cov","match","matching","name","process","re","regex","regexp","regexps","regular","test","tests","ugly"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/cleanup-coverage-code/blob/master/license.md"},"dependencies":{"coverage-code-regex":"~1.0.2"},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"9e7bfe70c85212ef9cb7d7416baa981dd35f7c32","bugs":{"url":"https://github.com/tunnckoCore/cleanup-coverage-code/issues"},"homepage":"https://github.com/tunnckoCore/cleanup-coverage-code","_id":"cleanup-coverage-code@1.0.2","_shasum":"8d84783915d1ae34a9edefb886a939cc9c0a5734","_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":"8d84783915d1ae34a9edefb886a939cc9c0a5734","tarball":"http://registry-npm.ywwl.com/cleanup-coverage-code/download/cleanup-coverage-code-1.0.2.tgz","integrity":"sha512-Mj/HUy5Datt541wBhAKZStsowgmAOPfrTYAF3Yu0mXEGtGzgkuhrClmJkdr6cvr+D9FB5CMj+caoG+nGJcYH9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGMvReOlQ8PvJ7567hAhST0nFjsr0wFKC/Jua7AwRYLtAiEApRcrnypA+ItFCxg8BLY0qn4/CQiRCh1N/PS07/FS+3g="}],"size":5276,"noattachment":false,"key":"/cleanup-coverage-code/-/cleanup-coverage-code-1.0.2.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":1422416173589,"_cnpm_publish_time":1422416173589,"dist-tags":{"latest":"1.0.3"}}