{"name":"nodelint","description":"The nodelint command line tool allows you to check for problems using JSLint. You can specify your own --config file to use alternate JSLint options and your own --reporter file if you want to customise the generated output. See the GitHub repo for example custom reporters as well as for TextMate/Emacs integration with nodelint.","version":"0.4.0","homepage":"http://github.com/tav/nodelint","author":{"name":"tav","email":"tav@espians.com","url":"http://tav.espians.com"},"contributors":[{"name":"Matthew Kitt","email":"mk.kitt@gmail.com","url":"http://github.com/mkitt"},{"name":"Oleg Efimov","email":"efimovov@gmail.com","url":"http://github.com/Sannis"},{"name":"Corey Hart","email":"corey@codenothing.com","url":"http://www.codenothing.com"},{"name":"Cliffano Subagio","email":"cliffano@gmail.com","url":"http://blog.cliffano.com"},{"name":"Mamading Ceesay","email":"mamading@gmail.com","url":"http://github.com/evangineer"},{"name":"Matt Ranney","email":"mjr@ranney.com","url":"http://github.com/mranney"},{"name":"Felix Geisendörfer","url":"http://debuggable.com"},{"name":"Nathan Landis","url":"http://github.com/my8bird"}],"bin":{"nodelint":"./nodelint"},"repository":{"type":"git","url":"http://github.com/tav/nodelint.git"},"licenses":{"type":"Public Domain"},"_id":"nodelint@0.4.0","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"http://registry-npm.ywwl.com/nodelint/download/nodelint-0.4.0.tgz","shasum":"c5a2f4367d90e3c27e660f0c7ef0bba899df9805","integrity":"sha512-cD5lx7mtvZrafZHCuLVweIK5Dn4r3aeXjeAt1DE4/w1j4y3PInsbuzt6LapjdqudWkNEQZbh0XOHOjLm2c/nVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlSuwzbaXZUleOKIDtbHTvTUz/Cr+K8X8YOJ5XjjZ9AAIgI0qUYpAZKW+qMVsSRhHMqU6voGnG5eyTEBxV2CkoRj8="}],"size":43951,"noattachment":false,"key":"/nodelint/-/nodelint-0.4.0.tgz"},"directories":{},"readme":"nodelint\n--------\n\n- [Node.js] is a [V8] based framework for writing Javascript applications outside\n  the browser.\n\n- [JSLint] is a code quality tool that checks for problems in Javascript programs.\n\n- **nodelint** lets you run JSLint from the command line.\n\n- nodelint currently supports node version 0.4.x and tested with 0.5.9 so should run on 0.6.x\n\n[Node.js]: http://nodejs.org/\n[V8]: http://code.google.com/p/v8/\n[JSLint]: https://github.com/douglascrockford/JSLint\n\n\ninstallation\n------------\n\nnpm:\n\n    $ npm install nodelint\n\n\nIf you clone nodelint from Github, you should init JSLint submodule:\n\n    $ git submodule update --init\n\n\nusage\n-----\n\nYou can use `nodelint` directly if you have `node` in your $PATH,\nor if you installed it using `npm -g`:\n\n    $ nodelint path/to/your/file.js\n\nOtherwise, you need to run it with node:\n\n    $ node path/to/nodelint path/to/your/file.js\n\nYou can also specify a directory param and nodelint will find all .js files under that directory and its subdirectories:\n\n    $ node path/to/nodelint dir1/ dir2/\n\nEnjoy!\n\n\nconfiguration\n-------------\n\nYou can override default JSLint options by passing config file with the optional `--config` parameter:\n\n    $ nodelint file1 file2 dir1 dir2 --config path/to/your/config/file.js\n\nFor example, if the default config.js has:\n\n    var options = {\n        adsafe       : false,\n        bitwise      : true,\n        ...\n        \"predef\"     : []\n    };\n\nAnd your own path/to/your/config/file.js looks like:\n\n    var options = {\n        bitwise      : false,\n        browser      : false\n    };\n\nThen the final options used will be:\n\n    var options = {\n        adsafe       : false,\n        bitwise      : false,\n        browser      : false,\n        ...\n        \"predef\"     : []\n    };\n\nTake a look at [JSLint's options] to see what to put in the `options` variable.\n\n[JSLint's options]: http://www.jslint.com/lint.html#options\n\nYou can also add your configuration inside the JS files itself:\nJSLint will use this one instead of the global one.\n\nSimply add some comments at the beginning of the file.\nNote that there is no space between /* and global and between /* and jslint:\n\n    // define your global objects:\n    /*global YUI, JQuery */\n\n    // define your jslint-options:\n    /*jslint white: true, onevar: true, undef: true, nomen: true */\n\n\nreporters\n---------\n\nBy default nodelint uses an internal `reporter` to output it's results to the console.\nThere may be times when a more customizable reporting system might be needed\n(*i.e. IDE/Text Editor integrations or customized console outputs*).\n\n`nodelint` allows you to designate a custom reporter for outputting the results\nfrom JSLint's run. This `reporter` will override the default one\nbuilt into nodelint. To utilize a custom reporter first create a js file that\nexports `reporter` function:\n\n`example-reporter.js`:\n\n    var util = require('util');\n\n    function report(results) {\n        var len = results.length;\n        util.puts(len + ' error' + ((len === 1) ? '' : 's'));\n    }\n\n    export.report = report;\n\nThen when you run nodelint from the command line, pass in the customized\nreporter:\n\n`$ ./nodelint path/to/file.js --reporter path/to/file/example-reporter.js`\n\nFor brevity sake, this is a fairly simple reporter.\n\n`nodelint` includes some build-in reportes for VIM, Textmate and JetBrains IDEA integration.\n\nAlso it include XML reporter, that produces reports which can\nalso be integrated with a Continuous Integration server like [Hudson] using the\n[Violations Plugin].\n\nPlease see the [wiki][wiki] for integration with various editors.\n\n[Hudson]: http://hudson-ci.org\n[Violations Plugin]: http://wiki.hudson-ci.org/display/HUDSON/Violations\n\n\ncontribute\n----------\n\nTo contribute any patches, simply fork this repository using GitHub and send a\npull request to me <<http://github.com/tav>>. Thanks!\n\n\ncredits\n-------\n\n- [tav], wrote nodelint\n\n- [Felix Geisendörfer][felixge], clarified Node.js specific details\n\n- [Douglas Crockford], wrote the original JSLint and rhino.js runner\n\n- [Nathan Landis][my8bird], updated nodelint to Node's new API.\n\n- [Oleg Efimov][Sannis], added support for overridable configurations, running\n  nodelint from a symlink and updates to reflect Node.js API changes.\n\n- [Matthew Kitt][mkitt], added support for configurable reporters, various code\n  cleanups and improvements including updates to reflect Node.js API changes.\n\n- [Corey Hart], updated nodelint with multiple files and config support.\n\n- [Mamading Ceesay][evangineer], added support for using nodelint within Emacs.\n\n- [Matt Ranney][mranney], updated nodelint to use sys.error.\n\n- [Cliffano Subagio], added npm installation support, XML reporter, and directory param support.\n\n- [Clemens Akens], updated to latest JSLint from Crockford repo\n\n- [Paul Armstrong], updates to reflect Node.js and npm API changes\n\n[tav]: http://tav.espians.com\n[felixge]: http://debuggable.com\n[Douglas Crockford]: http://www.crockford.com\n[my8bird]: http://github.com/my8bird\n[Sannis]: http://github.com/Sannis\n[mkitt]: http://github.com/mkitt\n[Corey Hart]: http://www.codenothing.com\n[evangineer]: http://github.com/evangineer\n[mranney]: http://github.com/mranney\n[Cliffano Subagio]: http://blog.cliffano.com\n[Clemens Akens]: https://github.com/clebert\n[Paul Armstrong]: https://github.com/paularmstrong\n","publish_time":1316128568638,"maintainers":[{"name":"tav","email":"tav@espians.com"},{"name":"cliffano","email":"cliffano@gmail.com"},{"name":"sannis","email":"efimovov@gmail.com"}],"_cnpm_publish_time":1316128568638,"dist-tags":{"latest":"0.6.2"}}