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

browserify-iced-coffee-coverage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-iced-coffee-coverage

Browserify transform to instrument iced src files with JSCoverage or Istanbul instrumentation

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

browserify-iced-coffee-coverage

Build Status Coverage Status Dependency Status devDependency Status Downloads

A browserify transform to take .coffee files and compile them into .js with coverage instrumentation using iced-coffee-coverage. iced-coffee-coverage supports istanbul and jscoverage

NPM

Usage

var coverage = require('browserify-iced-coffee-coverage');
var b = browserify();
b.add('./foo.coffee');
var options = { noInit: false };
b.transform(coverage, options);
b.bundle();

Options

You can pass anything that you would pass to the iced-coffee-coverage constructor, as well as these specific transform options.

options.noInit

iced-coffee-coverage instruments your coffee with lines like __coverage__["./foo.coffee"].s[1]++;. For each file, it will produce the intialization code to make sure __coverage__ (In this case the istanbul global coverage var) is properly setup. You can either choose to either have this initialization code inlined into the transformed file, or omit it. There are cases where you might want to omit it, and grab it yourself.

defaults to false.

Keywords

FAQs

Package last updated on 03 Aug 2016

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