{
  "name": "karma-commonjs",
  "version": "1.0.0",
  "description": "A Karma plugin. Test CommonJS modules.",
  "main": "lib/plugin.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/karma-runner/karma-commonjs.git"
  },
  "keywords": [
    "karma-plugin",
    "commonjs"
  ],
  "author": {
    "name": "Vojta Jina",
    "email": "vojta.jina@gmail.com"
  },
  "dependencies": {},
  "devDependencies": {
    "grunt": "~0.4.1",
    "grunt-npm": "~0.0.2",
    "grunt-bump": "~0.0.11",
    "grunt-karma": "1.x || ~1.0.0",
    "grunt-contrib-jshint": "~0.6.0",
    "grunt-auto-release": "~0.0.3"
  },
  "peerDependencies": {
    "karma": ">=0.9"
  },
  "license": "MIT",
  "contributors": [
    {
      "name": "Vojta Jina",
      "email": "vojta.jina@gmail.com"
    },
    {
      "name": "James Shore",
      "email": "jshore@jamesshore.com"
    },
    {
      "name": "Ben Drucker",
      "email": "bvdrucker@gmail.com"
    },
    {
      "name": "Mark Ethan Trostler",
      "email": "mark@zzo.com"
    },
    {
      "name": "Marian Zagoruiko",
      "email": "marian@zagoruiko.gmail.com"
    }
  ],
  "readme": "[![Build Status](https://travis-ci.org/karma-runner/karma-commonjs.svg?branch=master)](https://travis-ci.org/karma-runner/karma-commonjs)\n\n# karma-commonjs\n\n> A Karma plugin that allows testing [CommonJS] modules in the browser.\n\n## Browserify\n\nIf you're using Browserify to compile your projects, you should consider [karma-browserify](https://github.com/Nikku/karma-browserify) which runs Browserify directly. The cost is slightly slower builds (but not too bad, thanks to an incremental loading algorithm) and somewhat messier stack traces. The benefit is support for the full Browserify API and automatic discovery of 'require'd files.\n\n#### karma-commonjs\n1. Provides a lightweight commonjs wrapper around your code\n2. Supports Node's `require` algorithm\n3. Only reloads files that change\n4. Provides stack traces that point to your original files\n5. Requires you to specify files in the Karma config file\n\n#### karma-browserify\n1. Creates a temporary bundle using Browserify\n2. Supports the full Browserify API, including transforms, plugins, and shims for Node globals\n3. Uses [watchify](https://github.com/substack/watchify) to perform incremental rebuilds\n4. Can use source maps to provide useful stack traces\n5. Automatically includes required files\n\n## Installation\n\nThe easiest way is to keep `karma-commonjs` as a devDependency:\n\n`npm install karma-commonjs --save-dev`\n\nwhich should result in the following entry in your `package.json`:\n\n```json\n{\n  \"devDependencies\": {\n    \"karma\": \"~0.10\",\n    \"karma-commonjs\": \"~0.2\"\n  }\n}\n```\n\n## Configuration\n```js\n// karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    frameworks: ['jasmine', 'commonjs'],\n    files: [\n      // your tests, sources, ...\n    ],\n\n    preprocessors: {\n      '**/*.js': ['commonjs']\n    }\n  });\n};\n```\nAdditionally you can specify a root folder (relative to project's directory) which is used to look for required modules:\n```\ncommonjsPreprocessor: {\n  modulesRoot: 'some_folder'  \n}\n```\nWhen not specified the root folder defaults to the `karma.basePath/node_modules` configuration option.\n\nFor an example project, check out Karma's [client tests](https://github.com/karma-runner/karma/tree/master/test/client).\n\n----\n\nFor more information on Karma see the [homepage].\n\n\n[homepage]: http://karma-runner.github.com\n[CommonJS]: http://www.commonjs.org/\n[Browserify]: https://github.com/substack/node-browserify\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/karma-runner/karma-commonjs/issues"
  },
  "_id": "karma-commonjs@1.0.0",
  "dist": {
    "shasum": "17413b113449abeb322ae169ee03c51cb6b40531"
  },
  "_from": "karma-commonjs@^1.0.0",
  "_resolved": "https://registry.npmjs.org/karma-commonjs/-/karma-commonjs-1.0.0.tgz"
}
