Socket
Socket
Sign inDemoInstall

istanbul-instrumenter-loader

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-instrumenter-loader

Istanbul instrumenter loader for webpack


Version published
Maintainers
1
Created

What is istanbul-instrumenter-loader?

The 'istanbul-instrumenter-loader' is a webpack loader that instruments JavaScript files with Istanbul coverage, which is useful for generating code coverage reports for your tests.

What are istanbul-instrumenter-loader's main functionalities?

Instrumenting JavaScript files

This feature allows you to instrument JavaScript files for code coverage. The code sample shows how to configure webpack to use 'istanbul-instrumenter-loader' for all JavaScript files in the 'src/' directory.

module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        include: path.resolve('src/'),
        loader: 'istanbul-instrumenter-loader',
        options: { esModules: true }
      }
    ]
  }
};

Using with Babel

This feature demonstrates how to use 'istanbul-instrumenter-loader' in conjunction with 'babel-loader' to transpile and instrument JavaScript files. The code sample shows the configuration for webpack to use both loaders.

module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        include: path.resolve('src/'),
        use: [
          'babel-loader',
          {
            loader: 'istanbul-instrumenter-loader',
            options: { esModules: true }
          }
        ]
      }
    ]
  }
};

Other packages similar to istanbul-instrumenter-loader

Keywords

FAQs

Package last updated on 11 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc