{"id":16048979,"url":"https://github.com/devongovett/browserify-istanbul","last_synced_at":"2025-04-05T22:08:29.796Z","repository":{"id":16639920,"uuid":"19395178","full_name":"devongovett/browserify-istanbul","owner":"devongovett","description":"A browserify transform for the istanbul code coverage tool","archived":false,"fork":false,"pushed_at":"2020-01-17T11:27:32.000Z","size":23,"stargazers_count":50,"open_issues_count":6,"forks_count":32,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-14T13:15:59.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devongovett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-03T04:16:17.000Z","updated_at":"2022-07-19T07:43:14.000Z","dependencies_parsed_at":"2022-08-17T16:06:00.310Z","dependency_job_id":null,"html_url":"https://github.com/devongovett/browserify-istanbul","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbrowserify-istanbul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbrowserify-istanbul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbrowserify-istanbul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbrowserify-istanbul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/browserify-istanbul/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406091,"owners_count":20933803,"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-09T00:12:01.258Z","updated_at":"2025-04-05T22:08:29.772Z","avatar_url":"https://github.com/devongovett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browserify-istanbul\n\nA [browserify](http://github.com/substack/node-browserify) transform for the [istanbul](https://github.com/gotwarlost/istanbul) code coverage tool.\n\n## Installing\n\n    npm install --save-dev browserify-istanbul\n\n## Usage\n\nThere are several ways to register browserify transforms: on the command line, in your `package.json`, or using the browserify API.\nYou can use all of these with browserify-istanbul: see the [browserify docs](http://github.com/substack/node-browserify) for more info.\n\nThere are a few options available to browserify-istanbul when you use it from JavaScript.  They are shown in the following code example:\n\n```javascript\nvar istanbul = require('browserify-istanbul');\n\n// use without any options...\nbrowserifyBundle.transform(istanbul);\n\n// or with some options...\nbrowserifyBundle.transform(istanbul({\n  // ignore these glob paths (the ones shown are the defaults)\n  ignore: ['**/node_modules/**', '**/bower_components/**', '**/test/**', '**/tests/**', '**/*.json'],\n\n  // by default, any paths you include in the ignore option are ignored\n  // in addition to the defaults. set the defaultIgnore option to false\n  // to only ignore the paths you specify.\n  defaultIgnore: true\n}));\n```\n\n### Command line\n\n- without options:\n\n```\n./node_modules/.bin/browserify -t browserify-istanbul test/test-*.js -o bundle.js\n```\n\n- with options\n\n```\n./node_modules/.bin/browserify -t [ browserify-istanbul --ignore \"**/bower_components/**\" ] test/test-*.js -o bundle.js\n```\n\n### Interacting With Coverage Reports\n\nTo load and manipulate coverage reports, the command line tool [nyc](https://www.npmjs.com/package/nyc) can be used:\n\n1. output the the `__coverage__` object to `./.nyc_output/coverage.json`.\n  * this can be facilitated using a library like [mocha-phantomjs-istanbul](https://www.npmjs.com/package/mocha-phantomjs-istanbul).\n2. execute nyc with a list of [reporters](https://github.com/istanbuljs/istanbul-reports/tree/master/lib).\n  * `nyc report --reporter=lcov --reporter=text-summary`.\n\nSee [istanbul.js.org](https://istanbul.js.org/) for more examples and documentation.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fbrowserify-istanbul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fbrowserify-istanbul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fbrowserify-istanbul/lists"}