Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carpetify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carpetify

A browserify transform for the istanbul code coverage tool

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

carpetify

A browserify transform for the istanbul code coverage tool using the nyc CLI.

This is a fork of the original browserify-istanbul.

Installing

npm install --save-dev carpetify

Usage

This library should be used as a transform to your browserify bundle -- it will instrument the code in the bundle that doesn't match the ignore filter.

Please see the browserify repo for full instructions on how to use browserify plugins.

You can pass in several configuration options to the plugin:

  • defaultIgnore:boolean - use the default ignores or not
  • ignore:array(string) - an array of strings to pass to minimatch to ignore files.
  • stripBasePath:boolean - by default the full path to the file on your disk will be provided. This can be a problem if you want to use the default ignores but your parent directory contains one of the ignores. This will strip off the leading directories, allowing coverage to work

This will instrument all the code and generate a coverage report, attached to the window object in the browser. You'll likely need another tool to deal with this, you might want to check out:

License

MIT

Keywords

FAQs

Package last updated on 07 Jun 2017

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc