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
- Host: GitHub
- URL: https://github.com/andreaspitzer/detect-mocha
- Owner: andreaspitzer
- License: mit
- Created: 2016-02-23T10:43:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T08:11:27.000Z (over 7 years ago)
- Last Synced: 2026-01-13T07:46:41.954Z (5 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# detect-mocha    
> 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._