{"name":"@cspell/cspell-json-reporter","version":"6.6.1-alpha.9","author":{"name":"Jason Dent"},"license":"MIT","_id":"@cspell/cspell-json-reporter@6.6.1-alpha.9","homepage":"https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-json-reporter#readme","bugs":{"url":"https://github.com/streetsidesoftware/cspell/labels/cspell-json-reporter"},"dist":{"shasum":"d0064f632f3ca04482f650bd2a4d1ad6336272c2","tarball":"http://registry-npm.ywwl.com/@cspell/cspell-json-reporter/download/@cspell/cspell-json-reporter-6.6.1-alpha.9.tgz","fileCount":13,"integrity":"sha512-nfuAriLKTABM6P4/yGqGUYDX/P8o+YNxYF73Bds1o6EcxmIAHfNEzWoCuYk4TsQxmH/m7/+1tpGBvOEHr0kS6g==","signatures":[{"sig":"MEQCIHVzS/93Fce97kQ7ClMtxpHh7YfsIPneA/OgKjNGel5cAiADU3Sio/YfpdNfQuRvHd24Y43Fd9R2dtbsE1+LHBa3Eg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi89SXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpo/g//chEKU2hbmg6qyM8iIhdlYJwd05DL06VfA/EgiWXaG6bB8Zz9\r\ngncdxN4p67pZCd7mV/loWCMFSx26msWwNRYQsE9yI1wj0ci2gMkiz1IbghTq\r\n3uNSfHYanq9708BdmAJserh2AzxTZNYNWC0Zls8vKh8RoTlvI8svJaiWPni/\r\nuRSLrEvqDtkwxWJXQUd7GkgjJR393/9+4huRDJ/ve6PaY80dT7I7Sb6sfOOM\r\nZefrtEKGAK1WFVdl1uh06MlZzIEf7P7+sEGNLwa+PuJisfQRD6TU8/1AwS5s\r\nUXlMfaoSc7nTJQOHMD4jqfJrgDtwtdvynSczJH3UpxxdU74yPBLA0ydV0hc9\r\nMU/G/f3GYopwAmXZz30Zv7teiYnxRkN7szFiIihVvASjTtX7ldwVF3eeFBP/\r\nH/V2m0/4hzacJRRzzaOteDP7vyMz3dXxTATcqyjC5FrjaFMvGJcHhHsyFseW\r\nbiG0bUNfmNwO8gdZArbX0s+O38CmvKSU9taLRSk1kqLV5/sjXWvMoZoploQp\r\nVorEzG34l0mhd3gyfHAyfQ+AMICDA01YSvu8U2ap34RvOnVfzNozQIDNNgwu\r\nWevvb9HqZ5JuOfHuD7J7dWTITJpCXYvbfHQOyYRYWwSjl/UTedhhIsrMUa+P\r\nVU5MgVliHH/rLWBGyS605a7kHEDZQQvxlSc=\r\n=AWH5\r\n-----END PGP SIGNATURE-----\r\n","size":4040,"noattachment":false,"key":"/@cspell/cspell-json-reporter/-/@cspell/cspell-json-reporter-6.6.1-alpha.9.tgz"},"main":"dist/index.js","engines":{"node":">=14"},"gitHead":"0e128ed3a1fcc5f5e07dc1a528cd550d4d32ef4d","scripts":{"test":"jest","build":"pnpm run compile","clean":"rimraf dist temp coverage .tsbuildinfo","watch":"tsc --watch -p .","compile":"tsc -p .","coverage":"jest --coverage","build-dev":"tsc -p tsconfig.dev.json","test-watch":"jest --watch","clean-build":"pnpm run clean && pnpm run build","prepublishOnly":"pnpm run clean-build","update-snapshot":"jest --updateSnapshot"},"typings":"dist/index.d.ts","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"repository":{"url":"git+https://github.com/streetsidesoftware/cspell.git","type":"git"},"_npmVersion":"lerna/1.10.0/node@v16.16.0+x64 (linux)","description":"JSON reporter for CSpell","directories":{},"_nodeVersion":"16.16.0","dependencies":{"mkdirp":"^1.0.4","@cspell/cspell-types":"^6.6.1-alpha.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/mkdirp":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/cspell-json-reporter_6.6.1-alpha.9_1660146838871_0.7758654283521578","host":"s3://npm-registry-packages"},"readme":"# `@cspell/cspell-json-reporter`\n\n> CSpell reporter with JSON output\n\n## Installation\n\nInstall it as a development package in the repository that will use it.\n\n```sh\nnpm install -SD @cspell/cspell-json-reporter\n```\n\n## Usage\n\n### Using Command Line\n\n```sh\ncspell . --reporter @cspell/cspell-json-reporter\n```\n\n### Using CSpell Configuration\n\nAdd this to `cspell.yaml`:\n\n```yaml\nreporters: [['@cspell/cspell-json-reporter', { outFile: 'out.json' }]]\n```\n\nor `cspell.json`\n\n```json\n{\n  \"reporters\": [[\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]\n}\n```\n\n## Output file format\n\n`@cspell/cspell-json-reporter` emits a JSON file with the following fields:\n\n- `issues` - found spelling issues\n- `result` - CSpell linting results\n- `error` - CSell error messages\n- `progress` - file linting progress messages if `settings.progress` is enabled\n- `info` - CSpell execution logs if `settings.verbose` is enabled\n- `debug` - CSpell debug logs if `settings.debug` is enabled\n\n<details>\n<summary>JSON Output Definition</summary>\n\n<!--- @@inject: src/CSpellJSONReporterOutput.ts --->\n\n```ts\nimport type {\n  ErrorLike,\n  Issue,\n  MessageType,\n  ProgressFileComplete,\n  ProgressItem,\n  RunResult\n} from '@cspell/cspell-types';\n\nexport type CSpellJSONReporterOutput = {\n  /**\n   * Found spelling issues\n   */\n  issues: Array<Issue>;\n  /**\n   * CSpell execution logs\n   */\n  info?: Array<{ message: string; msgType: MessageType }>;\n  /**\n   * CSpell debug logs\n   */\n  debug?: Array<{ message: string }>;\n  /**\n   * CSpell error logs\n   */\n  error?: Array<{ message: string; error: ErrorLike }>;\n  /**\n   * CSpell file progress logs\n   */\n  progress?: Array<ProgressItem | ProgressFileComplete>;\n  /**\n   * Execution result\n   */\n  result: RunResult;\n};\n```\n\n<!--- @@inject-end: src/CSpellJSONReporterOutput.ts --->\n\n</details>\n\n## Settings\n\nPossible settings:\n\n- `outFile` (default: stdout) - path for JSON file to emit\n- `verbose` (default: false) - enable saving of execution logs\n- `debug` (default: false) - enable saving of debug logs\n- `progress` (default: false) - enable saving of file progress logs\n\n<details>\n<summary>Reporter Settings</summary>\n\n<!--- @@inject: src/CSpellJSONReporterSettings.ts --->\n\n```ts\n/**\n * CSpell-json-reporter settings type definition\n */\nexport type CSpellJSONReporterSettings = {\n  /**\n   * Path to the output file.\n   *\n   * Relative paths are relative to the current working directory.\n   *\n   * Special values:\n   * - `stdout` - write the JSON to `stdout`.\n   * - `stderr` - write the JSON to `stderr`.\n   *\n   * @default stdout\n   */\n  outFile?: string;\n  /**\n   * Add more information about the files being checked and the configuration\n   * @default false\n   */\n  verbose?: boolean;\n  /**\n   * Add information useful for debugging cspell.json files\n   * @default false\n   */\n  debug?: boolean;\n  /**\n   * Add progress messages\n   * @default false\n   */\n  progress?: boolean;\n};\n```\n\n<!--- @@inject-end: src/CSpellJSONReporterSettings.ts --->\n\n</details>\n","publish_time":1660146839029,"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_cnpm_publish_time":1660146839029,"dist-tags":{"cspell5":"5.21.2","cspell5-next":"5.21.2-alpha.0","latest":"10.4.0","next":"10.4.0-alpha.1"}}