{"_id":"checkstyle-formatter","_rev":"2892774","name":"checkstyle-formatter","description":"Simple Checkstyle data formatter","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jimf","email":""},{"name":"npm:jimf","email":""}],"time":{"modified":"2022-11-28T08:50:46.000Z","created":"2015-06-13T01:52:33.407Z","1.1.0":"2017-09-02T13:53:20.302Z","1.0.0":"2015-06-13T01:52:33.407Z"},"users":{},"author":{"name":"Jim Fitzpatrick"},"repository":{"type":"git","url":"git+https://github.com/jimf/checkstyle-formatter.git"},"versions":{"1.1.0":{"name":"checkstyle-formatter","version":"1.1.0","description":"Simple Checkstyle data formatter","main":"index.js","files":["index.js"],"scripts":{"coveralls":"coveralls < coverage/lcov.info","lint":"standard","pretest":"npm run lint","test":"nyc tape test/*.js"},"nyc":{"reporter":["lcov","text-summary"],"cache":true},"repository":{"type":"git","url":"git+https://github.com/jimf/checkstyle-formatter.git"},"keywords":["checkstyle","lint","format","formatter"],"author":{"name":"Jim Fitzpatrick"},"license":"MIT","bugs":{"url":"https://github.com/jimf/checkstyle-formatter/issues"},"homepage":"https://github.com/jimf/checkstyle-formatter","dependencies":{"xml-escape":"^1.0.0"},"devDependencies":{"coveralls":"^2.11.2","nyc":"^11.1.0","standard":"^10.0.3","tape":"^4.0.0"},"gitHead":"d4ce7e332552b4ec46cd90e9f1c2e08e19f0b832","_id":"checkstyle-formatter@1.1.0","_shasum":"1c4922dbac72d67242cfb85e7706917d5587b512","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"jimf","email":"fitzpatrick.jim@gmail.com"},"maintainers":[{"name":"jimf","email":""},{"name":"npm:jimf","email":""}],"dist":{"shasum":"1c4922dbac72d67242cfb85e7706917d5587b512","size":2494,"noattachment":false,"key":"/checkstyle-formatter/-/checkstyle-formatter-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/checkstyle-formatter/download/checkstyle-formatter-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/checkstyle-formatter-1.1.0.tgz_1504360399391_0.8926868650596589"},"directories":{},"publish_time":1504360400302,"_hasShrinkwrap":false,"_cnpm_publish_time":1504360400302,"_cnpmcore_publish_time":"2021-12-18T22:57:34.500Z"},"1.0.0":{"name":"checkstyle-formatter","version":"1.0.0","description":"Simple Checkstyle data formatter","main":"index.js","scripts":{"coverage":"istanbul cover test/*.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","lint":"jshint .","test":"tape test/*.js","validate":"npm run lint && npm test && npm run coveralls"},"repository":{"type":"git","url":"https://github.com/jimf/checkstyle-formatter"},"keywords":["checkstyle","lint","format","formatter"],"author":{"name":"Jim Fitzpatrick"},"license":"MIT","bugs":{"url":"https://github.com/jimf/checkstyle-formatter/issues"},"homepage":"https://github.com/jimf/checkstyle-formatter","dependencies":{"xml-escape":"^1.0.0"},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.14","jshint":"^2.7.0","tape":"^4.0.0"},"gitHead":"e4ebd7037fc546b52709321d1c525c0322cc8914","_id":"checkstyle-formatter@1.0.0","_shasum":"d8f5cf1d6ddcf4d58e196d627aca1f672efb74a6","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jimf","email":"fitzpatrick.jim@gmail.com"},"maintainers":[{"name":"jimf","email":""},{"name":"npm:jimf","email":""}],"dist":{"shasum":"d8f5cf1d6ddcf4d58e196d627aca1f672efb74a6","size":3404,"noattachment":false,"key":"/checkstyle-formatter/-/checkstyle-formatter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/checkstyle-formatter/download/checkstyle-formatter-1.0.0.tgz"},"directories":{},"publish_time":1434160353407,"_hasShrinkwrap":false,"_cnpm_publish_time":1434160353407,"_cnpmcore_publish_time":"2021-12-18T22:57:34.724Z"}},"readme":"# checkstyle-formatter\n\nSimple Checkstyle data formatter. Formats data to an XML string, leaving the\nreporting details to the user.\n\n[![npm Version][npm-badge]][npm]\n[![Build Status][build-badge]][build-status]\n[![Test Coverage][coverage-badge]][coverage-result]\n[![Dependency Status][dep-badge]][dep-status]\n\n## Installation\n\nInstall using npm:\n\n    $ npm install checkstyle-formatter\n\n## Usage\n\n```js\nvar checkstyleFormatter = require('checkstyle-formatter');\nvar results = [\n    {\n        filename: 'foo.js',\n        messages: [\n            {\n                line: 1,\n                column: 2,\n                severity: 'warning',\n                message: 'the quick'\n            },\n            {\n                line: 3,\n                column: 4,\n                severity: 'error',\n                message: 'brown fox'\n            }\n        ]\n    },\n    {\n        filename: 'bar.js',\n        messages: [\n            {\n                line: 5,\n                column: 6,\n                severity: 'warning',\n                message: 'jumped over'\n            },\n            {\n                line: 7,\n                column: 8,\n                severity: 'error',\n                message: 'the lazy dog'\n            }\n        ]\n    }\n];\n\nconsole.log(checkstyleFormatter(results));\n// <?xml version=\"1.0\" encoding=\"utf-8\"?>\n// <checkstyle version=\"4.3\">\n// <file name=\"foo.js\">\n// <error line=\"1\" column=\"2\" severity=\"warning\" message=\"the quick\" />\n// <error line=\"3\" column=\"4\" severity=\"error\" message=\"brown fox\" />\n// </file>\n// <file name=\"bar.js\">\n// <error line=\"5\" column=\"6\" severity=\"warning\" message=\"jumped over\" />\n// <error line=\"7\" column=\"8\" severity=\"error\" message=\"the lazy dog\" />\n// </file>\n// </checkstyle>\n```\n\n## Changelog\n\n#### 1.1.0\n- Add support for optional `source` information\n\n#### 1.0.0\n- Initial release\n\n## License\n\nMIT\n\n[build-badge]: https://img.shields.io/travis/jimf/checkstyle-formatter/master.svg\n[build-status]: https://travis-ci.org/jimf/checkstyle-formatter\n[npm-badge]: https://img.shields.io/npm/v/checkstyle-formatter.svg\n[npm]: https://www.npmjs.org/package/checkstyle-formatter\n[coverage-badge]: https://img.shields.io/coveralls/jimf/checkstyle-formatter.svg\n[coverage-result]: https://coveralls.io/r/jimf/checkstyle-formatter\n[dep-badge]: https://img.shields.io/david/jimf/checkstyle-formatter.svg\n[dep-status]: https://david-dm.org/jimf/checkstyle-formatter\n","_attachments":{},"homepage":"https://github.com/jimf/checkstyle-formatter","bugs":{"url":"https://github.com/jimf/checkstyle-formatter/issues"},"license":"MIT"}