# mocha-json-spec-reporter

> A mocha spec reporter to allow JSON output.

Latest version **0.2.1** (published 2014-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install mocha-json-spec-reporter
pnpm add mocha-json-spec-reporter
yarn add mocha-json-spec-reporter
bun add mocha-json-spec-reporter
```

## 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.2.1 |
| Published | 2014-07-03 |
| First published | 2014-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sal Gerace |
| Maintainers | sgerace |
| Keywords | mocha, JSON, spec, reporter |

## Links

- npm: https://www.npmjs.com/package/mocha-json-spec-reporter
- Repository: https://github.com/sgerace/mocha-json-spec-reporter
- Issues: https://github.com/sgerace/mocha-json-spec-reporter/issues
- npm.io page: https://npm.io/package/mocha-json-spec-reporter

## Dependencies (2)

- [mocha](https://npm.io/package/mocha.md) >=1.20.1
- [mkdirp](https://npm.io/package/mkdirp.md) 0.5.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-07-03
- 0.2.0 — 2014-07-03
- 0.1.2 — 2014-07-02
- 0.1.1 — 2014-07-02
- 0.1.0 — 2014-07-02

## README

A Spec JSON Reporter for Mocha
==============================

## Options

There are multiple ways to set global options:

````js
//on module using .option() method
require('mocha-json-spec-reporter').option('<option_name>', <option_value>);
//or on env with prefixed name
process.env['mocha-json-spec-<option_name>'] = <option_value>;
//env also work Bash-style: upper-cased and underscores instead of dashes
process.env['MOCHA_JSON_SPEC_<OPTION_NAME>'] = <option_value>;
````

These are equivalent:

````js
process.env['MOCHA_JSON_SPEC_REPORTPENDING'] = true;
process.env['mocha-json-spec-reportPending'] = true;

require('mocha-json-spec-reporter').option('reportPending', true);
require('mocha-json-spec-reporter').option({reportPending: true});
````

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