# karma-bower-inject

> Small module that return an array of path to required JS files in bower components

Latest version **0.0.5** (published 2015-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-bower-inject
pnpm add karma-bower-inject
yarn add karma-bower-inject
bun add karma-bower-inject
```

## 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.5 |
| Published | 2015-11-23 |
| First published | 2015-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eugene Snihovsky |
| Maintainers | elsnih |
| Keywords | bower, karma, inject |

## Links

- npm: https://www.npmjs.com/package/karma-bower-inject
- npm.io page: https://npm.io/package/karma-bower-inject

## Recent versions

- 0.0.5 (latest) — 2015-11-23
- 0.0.4 — 2015-11-23
- 0.0.3 — 2015-11-23
- 0.0.2 — 2015-11-23
- 0.0.1 — 2015-11-09

## README

# karma-bower-inject

Small module that return an array of path to required JS files in bower components

### Installation

```sh
npm install --save-dev karma-bower-inject
```

### Usage

Initialization (in karma config file)

```js
var bowerInject = require( 'karma-bower-inject' );
    bower = bowerInject.get( depArr ); // return an array of path to bower JS files
```

**depArr** - is an optional **array** of dependencies names that need to be injected first. Module sort bower components by field *dependencies* and *devDeendencies* in bower.json, but some of modules missed that fields. 
Then concat your bower dependencies with your gustom JS files

```javascript
files: bower.concat([
            'src/config.spec.js',
            'src/**/!(*.spec).js'
        ])
```

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