{"id":15365626,"url":"https://github.com/tunnckocore/cleanup-coverage-code","last_synced_at":"2025-04-15T09:52:38.690Z","repository":{"id":26489499,"uuid":"29941653","full_name":"tunnckoCore/cleanup-coverage-code","owner":"tunnckoCore","description":"Cleanup ugly code (like this `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`) added by code coverage tools during the test process.","archived":false,"fork":false,"pushed_at":"2017-07-27T17:29:20.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T07:42:52.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://j.mp/1D67Bif","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tunnckoCore.png","metadata":{"files":{"readme":"readme.md","changelog":"history.md","contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-28T00:02:44.000Z","updated_at":"2020-02-22T00:05:23.000Z","dependencies_parsed_at":"2022-07-24T11:01:53.281Z","dependency_job_id":null,"html_url":"https://github.com/tunnckoCore/cleanup-coverage-code","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fcleanup-coverage-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fcleanup-coverage-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fcleanup-coverage-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fcleanup-coverage-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tunnckoCore","download_url":"https://codeload.github.com/tunnckoCore/cleanup-coverage-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249048711,"owners_count":21204305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:15:21.676Z","updated_at":"2025-04-15T09:52:38.672Z","avatar_url":"https://github.com/tunnckoCore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u003e 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\u003e For more use-cases see the [tests](./test.js)\n\n### [cleanupCoverageCode](./index.js#L33)\n\u003e Cleans up the given code from code added by coverage tools.\n\n- `\u003cstr\u003e` **{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//=\u003e 'var a=[1,2,3];var b=123;'\n\ncleanupCoverageCode('var a=[1,2,3];var b=123;');\n//=\u003e '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\u0026label=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_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fcleanup-coverage-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunnckocore%2Fcleanup-coverage-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fcleanup-coverage-code/lists"}