# detect-mocha

> Detect if Mocha is running

Latest version **0.1.0** (published 2016-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install detect-mocha
pnpm add detect-mocha
yarn add detect-mocha
bun add detect-mocha
```

## 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.1.0 |
| Published | 2016-02-23 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andreas Pizsa |
| Maintainers | andreaspizsa |
| Keywords | mocha, detect, running, active, test |

## Links

- npm: https://www.npmjs.com/package/detect-mocha
- Repository: https://github.com/andreaspizsa/detect-mocha
- Homepage: https://github.com/AndreasPizsa/detect-mocha
- Issues: https://github.com/AndreasPizsa/detect-mocha/issues
- npm.io page: https://npm.io/package/detect-mocha

## Dependencies (1)

- [global-var](https://npm.io/package/global-var.md) ^0.1.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-02-23

## README

# detect-mocha ![Travis](https://img.shields.io/travis/AndreasPizsa/detect-mocha.svg?style=flat-square) ![Coverage Status](https://img.shields.io/coveralls/AndreasPizsa/detect-mocha.svg?style=flat-square) ![Coverage Status](https://img.shields.io/codecov/c/github/AndreasPizsa/global-var.svg?style=flat-square) ![Downloads](https://img.shields.io/npm/dm/detect-mocha.svg?style=flat-square)

> Detect if Mocha is running

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i detect-mocha --save
```

## Usage

```js
var detectMocha = require('detect-mocha');
if(detectMocha()) {
  // doSomethingFancy
}
```

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/AndreasPizsa/detect-mocha/issues/new).

## Author

**Andreas Pizsa**

+ [github/AndreasPizsa](https://github.com/AndreasPizsa)
+ [twitter/AndreasPizsa](http://twitter.com/AndreasPizsa)

## License

Copyright © 2016 Andreas Pizsa
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on February 23, 2016._

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