{"id":22122884,"url":"https://github.com/andreaspitzer/detect-mocha","last_synced_at":"2026-02-10T12:33:40.598Z","repository":{"id":76025193,"uuid":"52351700","full_name":"andreaspitzer/detect-mocha","owner":"andreaspitzer","description":"Detect if Mocha is running","archived":false,"fork":false,"pushed_at":"2018-11-18T08:11:27.000Z","size":6,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-13T07:46:41.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreaspitzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-23T10:43:48.000Z","updated_at":"2022-06-09T21:55:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"964791ff-b8d7-42f5-80d2-d435290fc39b","html_url":"https://github.com/andreaspitzer/detect-mocha","commit_stats":null,"previous_names":["andreaspitzer/detect-mocha","andreaspizsa/detect-mocha"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreaspitzer/detect-mocha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaspitzer%2Fdetect-mocha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaspitzer%2Fdetect-mocha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaspitzer%2Fdetect-mocha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaspitzer%2Fdetect-mocha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreaspitzer","download_url":"https://codeload.github.com/andreaspitzer/detect-mocha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaspitzer%2Fdetect-mocha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29298719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T12:23:18.846Z","status":"ssl_error","status_checked_at":"2026-02-10T12:23:06.082Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T15:28:09.531Z","updated_at":"2026-02-10T12:33:40.539Z","avatar_url":"https://github.com/andreaspitzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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)\n\n\u003e Detect if Mocha is running\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i detect-mocha --save\n```\n\n## Usage\n\n```js\nvar detectMocha = require('detect-mocha');\nif(detectMocha()) {\n  // doSomethingFancy\n}\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/AndreasPizsa/detect-mocha/issues/new).\n\n## Author\n\n**Andreas Pizsa**\n\n+ [github/AndreasPizsa](https://github.com/AndreasPizsa)\n+ [twitter/AndreasPizsa](http://twitter.com/AndreasPizsa)\n\n## License\n\nCopyright © 2016 Andreas Pizsa\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on February 23, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaspitzer%2Fdetect-mocha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreaspitzer%2Fdetect-mocha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaspitzer%2Fdetect-mocha/lists"}