An open API service indexing awesome lists of open source software.

https://github.com/andreaspitzer/detect-mocha

Detect if Mocha is running
https://github.com/andreaspitzer/detect-mocha

Last synced: 4 months ago
JSON representation

Detect if Mocha is running

Awesome Lists containing this project

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._