Socket
Book a DemoInstallSign in
Socket

buster-extension-iife

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buster-extension-iife

Extension to wrap resources buster loads in an IIFE

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Buster extension: IIFE

Build Status

Wrap every test file in a self invoking function to create a closure before sending tests to the browser.

  • Good for browser testing (doesn't leak globals between test runs, if you do the right thing)
  • Useless for node.js testing (node.js modules are closurized internally)
  • Want other resources wrapped? Submit a PR!

Usage

npm install buster-extension-iife and then in your buster.js include:

extensions: [
	require("buster-extension-iife")
]

Keywords

buster.js

FAQs

Package last updated on 09 Jul 2014

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