# karma-injector-preprocessor

> Karma preprocessor for injecting any content before any file served by Karma

Latest version **0.0.3** (published 2015-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-injector-preprocessor
pnpm add karma-injector-preprocessor
yarn add karma-injector-preprocessor
bun add karma-injector-preprocessor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-03-10 |
| First published | 2015-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marian Zagoruiko |
| Maintainers | mzahor |
| Keywords | karma, inject, content, preprocessor, file |

## Links

- npm: https://www.npmjs.com/package/karma-injector-preprocessor
- Repository: https://github.com/mzahor/karma-injector-preprocessor
- Issues: https://github.com/mzahor/karma-injector-preprocessor/issues
- npm.io page: https://npm.io/package/karma-injector-preprocessor

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2015-03-10
- 0.0.2 — 2015-03-10
- 0.0.1 — 2015-03-10

## README

# karma-injector-preprocessor
Karma preprocessor for injecting any content before any file served by Karma.

## Sample usage (in karma.conf.js):
```js
preprocessors: {
  'App/**/*.js': ['commonjs', 'injector']
},
plugins: ['karma-*', {
  'config.injectorPreprocessor': ['value', {
    injection: 'window.global = window;'
  }],
}]
```
This code will add ```window.global = window;``` text to each js file in App directory.

---
_Source: https://npm.io/package/karma-injector-preprocessor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
