{"_id":"checkstyle-formatter","_rev":"4-3c3444910882a273d661e739a444d8d5","name":"checkstyle-formatter","description":"Simple Checkstyle data formatter","dist-tags":{"latest":"1.1.0"},"versions":{"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":"fitzpatrick.jim@gmail.com"}],"dist":{"shasum":"d8f5cf1d6ddcf4d58e196d627aca1f672efb74a6","tarball":"https://registry.npmjs.org/checkstyle-formatter/-/checkstyle-formatter-1.0.0.tgz","integrity":"sha512-rL9foRNSWSxxGipiz+jWdu9OaIDFhsqJX0rRZlAJH+VRBuEteZjrOj9Mb/edrDEP19HkHWnJSjZ1RHD8fHC5YA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK3S/jC6F5oiuYco+YNTgB0Mm+yay4tHb/OhsPHDPu2QIhAJfXAVfH+PydvGQS/LHs9mdxgDknme1nEOVcU4G9FrKC"}]}},"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":"fitzpatrick.jim@gmail.com"}],"dist":{"shasum":"1c4922dbac72d67242cfb85e7706917d5587b512","tarball":"https://registry.npmjs.org/checkstyle-formatter/-/checkstyle-formatter-1.1.0.tgz","integrity":"sha512-mak+5ooX5cDFBBIhsR+NqxoQ9+JQRqupr49G2PiUYXKn8OntoI9osjhECaScrzqq1l4phuRmK1VlMdxHdpwZvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHU0RFST9VDfYTu5+EUywaJs1bL2uCahJDGirE556qgWAiEAts3+oLpNuu90B/kpVmMxDSvwbjysTKo31nOC4pYq3Cs="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/checkstyle-formatter-1.1.0.tgz_1504360399391_0.8926868650596589"}}},"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","maintainers":[{"name":"jimf","email":"fitzpatrick.jim@gmail.com"}],"time":{"modified":"2022-06-13T05:56:20.336Z","created":"2015-06-13T01:52:33.407Z","1.0.0":"2015-06-13T01:52:33.407Z","1.1.0":"2017-09-02T13:53:20.302Z"},"homepage":"https://github.com/jimf/checkstyle-formatter","keywords":["checkstyle","lint","format","formatter"],"repository":{"type":"git","url":"git+https://github.com/jimf/checkstyle-formatter.git"},"author":{"name":"Jim Fitzpatrick"},"bugs":{"url":"https://github.com/jimf/checkstyle-formatter/issues"},"license":"MIT","readmeFilename":"README.md"}