{"id":22985381,"url":"https://github.com/aj-dev/jscs-json-reporter","last_synced_at":"2025-07-16T03:46:49.103Z","repository":{"id":28401710,"uuid":"31916035","full_name":"aj-dev/jscs-json-reporter","owner":"aj-dev","description":"Saves JSCS results to a JSON file","archived":false,"fork":false,"pushed_at":"2016-11-28T10:56:58.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T23:02:34.893Z","etag":null,"topics":["grunt-jscs","javascript","json-report","node-jscs"],"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/aj-dev.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}},"created_at":"2015-03-09T18:43:34.000Z","updated_at":"2020-05-24T16:39:50.000Z","dependencies_parsed_at":"2022-08-17T21:50:30.016Z","dependency_job_id":null,"html_url":"https://github.com/aj-dev/jscs-json-reporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aj-dev/jscs-json-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aj-dev%2Fjscs-json-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aj-dev%2Fjscs-json-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aj-dev%2Fjscs-json-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aj-dev%2Fjscs-json-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aj-dev","download_url":"https://codeload.github.com/aj-dev/jscs-json-reporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aj-dev%2Fjscs-json-reporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265479863,"owners_count":23773628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["grunt-jscs","javascript","json-report","node-jscs"],"created_at":"2024-12-15T03:31:48.058Z","updated_at":"2025-07-16T03:46:49.071Z","avatar_url":"https://github.com/aj-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jscs-json-reporter [![npmVersion](http://img.shields.io/npm/v/jscs-json-reporter.svg)](https://www.npmjs.org/package/jscs-json-reporter)\n[![Build Status](https://travis-ci.org/aj-dev/jscs-json-reporter.svg?branch=master)](https://travis-ci.org/aj-dev/jscs-json-reporter)\n[![Dependencies](https://david-dm.org/aj-dev/jscs-json-reporter.svg)](https://david-dm.org/aj-dev/jscs-json-reporter#info=dependencies\u0026view=table)\n[![DevDependencies](https://david-dm.org/aj-dev/jscs-json-reporter/dev-status.svg)](https://david-dm.org/aj-dev/jscs-json-reporter#info=devDependencies\u0026view=table) [![npm](https://img.shields.io/npm/dm/jscs-json-reporter.svg)](https://www.npmjs.com/package/jscs-json-reporter)\n\n\nA JSON reporter for [node-jscs](https://github.com/mdevils/node-jscs) and [grunt-jscs](https://github.com/jscs-dev/grunt-jscs).\n\n## Getting started\nInstall using npm:\n\n`npm install jscs-json-reporter --save-dev`\n\n## Usage\n\n#### When using with [node-jscs](https://github.com/mdevils/node-jscs)\nSet the path to `jscs-json-reporter`. Command line example:\n\n`jscs app.js --reporter node_modules/jscs-json-reporter/jscs-json-reporter.js`\n\nReport will be written to `jscs-report.json` in current working directory.\n\n#### When using with [grunt-jscs](https://github.com/jscs-dev/grunt-jscs)\nConfigure `jscs` in `Gruntfile.js` so that `reporter` points to `jscs-json-reporter.js` and `reporterOutput` points to some JSON file.\n\n```javascript\njscs: {\n    src: [\n    \t'path/to/files/*.js',\n    \t'another/path/to/files/**/*.js'\n    ],\n    options: {\n    \tmaxErrors: null,\n        reporter: require('jscs-json-reporter').path,\n        reporterOutput: path.resolve('/path/to/jscs-report.json')\n    }\n}\n```\n\n## Example\n![alt text](https://raw.githubusercontent.com/aj-dev/jscs-json-reporter/master/jscs-json-reporter.png 'JSCS JSON Reporter example')\n\n`\"explainedError\"` key contains a preformatted string with detailed error info.\n\nWhen used inside HTML `\u003cpre\u003e\u003c/pre\u003e` tags it is displayed like this:\n![alt text](https://raw.githubusercontent.com/aj-dev/jscs-json-reporter/master/explained-error-preformatted.png 'Explained error property preformatted example')\n\n## Important!\nGenerated JSON file size might be very large depending on the number of errors. For instance, a file containing 4500 errors is around 2.85 MB.\n\n## License\nLicensed under the MIT license. Copyright (c) 2015 - 2016 Audrius Jakumavicius\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faj-dev%2Fjscs-json-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faj-dev%2Fjscs-json-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faj-dev%2Fjscs-json-reporter/lists"}