{
  "manifest": {
    "name": "babel-plugin-istanbul",
    "version": "6.1.1",
    "author": {
      "name": "Thai Pangsakulyanont @dtinth"
    },
    "license": "BSD-3-Clause",
    "description": "A babel plugin that adds istanbul instrumentation to ES6 code",
    "main": "lib/index.js",
    "files": [
      "lib"
    ],
    "dependencies": {
      "@babel/helper-plugin-utils": "^7.0.0",
      "@istanbuljs/load-nyc-config": "^1.0.0",
      "@istanbuljs/schema": "^0.1.2",
      "istanbul-lib-instrument": "^5.0.4",
      "test-exclude": "^6.0.0"
    },
    "devDependencies": {
      "@babel/cli": "^7.7.5",
      "@babel/core": "^7.7.5",
      "@babel/plugin-transform-modules-commonjs": "^7.7.5",
      "@babel/register": "^7.7.4",
      "chai": "^4.2.0",
      "coveralls": "^3.0.9",
      "cross-env": "^6.0.3",
      "mocha": "^6.2.2",
      "nyc": "^15.0.0",
      "pmock": "^0.2.3",
      "standard": "^14.3.1"
    },
    "scripts": {
      "coverage": "nyc report --reporter=text-lcov | coveralls",
      "release": "babel src --out-dir lib",
      "pretest": "standard && npm run release",
      "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha --timeout 5000 test/*.js",
      "prepublish": "npm test && npm run release"
    },
    "standard": {
      "ignore": [
        "fixtures/*.js"
      ]
    },
    "repository": {
      "type": "git",
      "url": "git+https://github.com/istanbuljs/babel-plugin-istanbul.git"
    },
    "keywords": [
      "istanbul",
      "babel",
      "plugin",
      "instrumentation"
    ],
    "nyc": {
      "include": [
        "src/*.js",
        "fixtures/should-cover.js"
      ],
      "require": [
        "@babel/register"
      ],
      "sourceMap": false,
      "instrument": false
    },
    "bugs": {
      "url": "https://github.com/istanbuljs/babel-plugin-istanbul/issues"
    },
    "homepage": "https://github.com/istanbuljs/babel-plugin-istanbul#readme",
    "engines": {
      "node": ">=8"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-babel-plugin-istanbul-6.1.1-fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73-integrity/node_modules/babel-plugin-istanbul/package.json",
    "readmeFilename": "README.md",
    "readme": "# babel-plugin-istanbul\n\n[![Coverage Status](https://coveralls.io/repos/github/istanbuljs/babel-plugin-istanbul/badge.svg?branch=master)](https://coveralls.io/github/istanbuljs/babel-plugin-istanbul?branch=master)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![community slack](http://devtoolscommunity.herokuapp.com/badge.svg)](http://devtoolscommunity.herokuapp.com)\n\n_Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com)_.\n\nA Babel plugin that instruments your code with Istanbul coverage.\nIt can instantly be used with [karma-coverage](https://github.com/karma-runner/karma-coverage) and mocha on Node.js (through [nyc](https://github.com/bcoe/nyc)).\n\n__Note:__ This plugin does not generate any report or save any data to any file;\nit only adds instrumenting code to your JavaScript source code.\nTo integrate with testing tools, please see the [Integrations](#integrations) section.\n\n## Usage\n\nInstall it:\n\n```\nnpm install --save-dev babel-plugin-istanbul\n```\n\nAdd it to `.babelrc` in test mode:\n\n```js\n{\n  \"env\": {\n    \"test\": {\n      \"plugins\": [ \"istanbul\" ]\n    }\n  }\n}\n```\n\nOptionally, use [cross-env](https://www.npmjs.com/package/cross-env) to set\n`NODE_ENV=test`:\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha test/*.js\"\n  }\n}\n```\n\n## Integrations\n\n### karma\n\nIt _just works_ with Karma. First, make sure that the code is already transpiled by Babel (either using `karma-babel-preprocessor`, `karma-webpack`, or `karma-browserify`). Then, simply set up [karma-coverage](https://github.com/karma-runner/karma-coverage) according to the docs, but __don’t add the `coverage` preprocessor.__ This plugin has already instrumented your code, and Karma should pick it up automatically.\n\nIt has been tested with [bemusic/bemuse](https://codecov.io/github/bemusic/bemuse) project, which contains ~2400 statements.\n\n### mocha on node.js (through nyc)\n\nConfigure Mocha to transpile JavaScript code using Babel, then you can run your tests with [`nyc`](https://github.com/bcoe/nyc), which will collect all the coverage report.\n\nbabel-plugin-istanbul respects the `include`/`exclude` configuration options from nyc,\nbut you also need to __configure NYC not to instrument your code__ by adding these settings in your `package.json`:\n\n```js\n  \"nyc\": {\n    \"sourceMap\": false,\n    \"instrument\": false\n  },\n```\n\n## Ignoring files\n\nYou don't want to cover your test files as this will skew your coverage results. You can configure this by providing plugin options matching nyc's [`exclude`/`include` rules](https://github.com/bcoe/nyc#excluding-files):\n\n```json\n{\n  \"env\": {\n    \"test\": {\n      \"plugins\": [\n        [\"istanbul\", {\n          \"exclude\": [\n            \"**/*.spec.js\"\n          ]\n        }]\n      ]\n    }\n  }\n}\n```\n\nIf you don't provide options in your Babel config, the plugin will look for `exclude`/`include` config under an `\"nyc\"` key in `package.json`.\n\nYou can also use [istanbul's ignore hints](https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes) to specify specific lines of code to skip instrumenting.\n\n## Source Maps\n\nBy default, this plugin will pick up inline source maps and attach them to the instrumented code such that code coverage can be remapped back to the original source, even for multi-step build processes. This can be memory intensive. Set `useInlineSourceMaps` to prevent this behavior.\n\n```json\n{\n  \"env\": {\n    \"test\": {\n      \"plugins\": [\n        [\"istanbul\", {\n          \"useInlineSourceMaps\": false\n        }]\n      ]\n    }\n  }\n}\n```\n\nIf you're instrumenting code programatically, you can pass a source map explicitly.\n```js\nimport babelPluginIstanbul from 'babel-plugin-istanbul';\n\nfunction instrument(sourceCode, sourceMap, fileName) {\n  return babel.transform(sourceCode, {\n    filename,\n    plugins: [\n      [babelPluginIstanbul, {\n        inputSourceMap: sourceMap\n      }]\n    ]\n  })\n}\n```\n\n## Credit where credit is due\n\nThe approach used in `babel-plugin-istanbul` was inspired by [Thai Pangsakulyanont](https://github.com/dtinth)'s original library [`babel-plugin-__coverage__`](https://github.com/dtinth/babel-plugin-__coverage__).\n\n## `babel-plugin-istanbul` for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `babel-plugin-istanbul` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-babel-plugin-istanbul?utm_source=npm-babel-plugin-istanbul&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n",
    "licenseText": "Copyright (c) 2016, Istanbul Code Coverage\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of babel-plugin-istanbul nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",
    "hash": "fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73",
    "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==",
    "registry": "npm",
    "packageName": "babel-plugin-istanbul",
    "cacheIntegrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== sha1-+ojsWSMv2bTjbbvFQKjsmptH2nM="
  },
  "registry": "npm",
  "hash": "fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73"
}