{"name":"jslint","description":"The JavaScript Code Quality Tool","homepage":"https://github.com/reid/node-jslint","keywords":["lint"],"version":"0.2.2","author":{"name":"Reid Burke","email":"me@reidburke.com"},"contributors":[{"name":"Douglas Crockford","email":"douglas@crockford.com"},{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},{"name":"Adam Moore"},{"name":"Luke Smith","email":"lsmith@yahoo-inc.com"},{"name":"Anders Conbere","email":"aconbere@gmail.com"},{"name":"Ryuichi OKUMURA","email":"okuryu@okuryu.com"},{"name":"Sam Mikes","email":"smikes@cubane.com"},{"name":"Dylan Lloyd"},{"name":"Andreas Hindborg"},{"name":"Andrew Pennebaker"}],"bin":{"jslint":"./bin/jslint.js"},"main":"./lib/nodelint.js","dependencies":{"nopt":"~1.0.0"},"devDependencies":{"ronn":"0.4.0"},"engines":{"node":">=0.4.12"},"directories":{"lib":"./lib","man":"./man"},"repository":{"type":"git","url":"git://github.com/reid/node-jslint.git"},"bugs":{"url":"https://github.com/reid/node-jslint/issues"},"licenses":[{"type":"Modified MIT / BSD","url":"https://github.com/reid/node-jslint/blob/master/LICENSE"}],"scripts":{"test":"make test"},"man":[],"_id":"jslint@0.2.2","dist":{"shasum":"f9050ac56b972042ecef47a9b80a32f64905b3d9","tarball":"http://registry-npm.ywwl.com/jslint/download/jslint-0.2.2.tgz","integrity":"sha512-F3lIhMQoFZ3i9/WEwrck48tt99PCgxgfiZujSg1r5xKOEeM6F5QbUZ52puAV7U7OpxIyfejQ3kEMvEKPXIyXBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvf3tJZz0FR9Lvw78vGpkZmiy2xfU7+W84F2TlEI/x7AiEAl1rw/qypPdqCJ3CQHuClaTQCuHHpkkqDwM5tgzY8sRk="}],"size":191656,"noattachment":false,"key":"/jslint/-/jslint-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"smikes","email":"smikes@cubane.com"},"maintainers":[{"name":"reid","email":"me@reidburke.com"},{"name":"okuryu","email":"okuryu@okuryu.com"},{"name":"smikes","email":"smikes@cubane.com"}],"readme":"## node-jslint\n\nEasily use [JSLint][] from the command line.\n\n      jslint bin/jslint.js\n\n## What's New\n\nAdded latest jslint, 2018-01-27.\n\nVersion 0.12.0 contains the latest jslint-es6\n\nSee CHANGELOG.md for detailed change history\n\n## Use the command-line client\n\n### Install (both local and global are supported)\n\n   npm i jslint\n\n### Use the default jslint\n\n    jslint lib/color.js\n\n### Always use the latest jslint\n\n    jslint --edition=latest lib/color.js\n\n### Use a specific edition\n\nFor example, edition 2013-02-03 which shipped with node-jslint 0.1.9:\n\n    jslint --edition=2013-02-03 lib/color.js\n\n## Use node-jslint programmatically\n\n### Streams interface\n\nAs of node-jslint 0.4.0, a streams interface is exposed.  You can use it in client code like this:\n\nInstall as a dependency:\n\n    $ npm install --save jslint\n\nPull it into your code with require:\n\n    var LintStream = require('jslint').LintStream;\n\nCreate and configure the stream linter:\n\n    var options = {\n        \"edition\": \"latest\",\n        \"length\": 100\n    },\n        l = new LintStream(options);\n\nSend files to the linter:\n\n    var fileName, fileContents;\n    l.write({file: fileName, body: fileContents});\n\nReceive lint from the linter:\n\n    l.on('data', function (chunk, encoding, callback) {\n        // chunk is an object\n\n        // chunk.file is whatever you supplied to write (see above)\n        assert.deepEqual(chunk.file, fileName);\n\n        // chunk.linted is an object holding the result from running JSLint\n        // chunk.linted.ok is the boolean return code from JSLINT()\n        // chunk.linted.errors is the array of errors, etc.\n        // see JSLINT for the complete contents of the object\n\n        callback();\n    });\n\nYou can only pass options to the LintStream when creating it.  The `edition` option can be\nused to select different editions of JSLint.\n\nThe LintStream is in object mode (objectMode: true).  It expects an\nobject with two properties: `file` and `body`.  The `file` property\ncan be used to pass metadata along with the file.  The `body` property\ncontains the file to be linted; it can be either a string or a Buffer.\n\nThe LintStream emits `'data'` events containing an object with two properties.\nThe `file` property is copied from the `file` property that is passed in.  The\n`linted` property contains the results of running JSLINT.\n\n### Simple interface\n\nThe simple interface provides an edition-aware loader.  This can be used as a frontend to\nnode-jslint's collection of editions of the JSLINT code.\n\n    var node_jslint = require('jslint'),\n        JSLINT = node_jslint.load(edition);\n\nThis exposes the same loading interface used in node-jslint, so it supports the special\nedition names `default` and `latest` as well as date-based edition names such as `2013-08-26`\n\nAs of version 0.5.0, the `load` function also accepts filenames.  To be recognized as a filename,\nthe argument to load must contain a path-separator character (`/` or `\\`) or end with the extension\n`.js`.\n\n\n## Usage examples\n\nMultiple files\n\n    jslint lib/color.js lib/reporter.js\n\nAll JSLint options supported\n\n    jslint --white --vars --regexp lib/color.js\n\nDefaults to true, but you can specify false\n\n    jslint --bitwise false lib/color.js\n\nPass arrays\n\n    jslint --predef $ --predef Backbone lib/color.js\n\nJSLint your entire project\n\n    jslint '**/*.js'\n\n## Using JSLint with a config file\n\nStart with the included `jslint.conf.example` file, name it `jslint.conf` and customize your options\nper project or copy it to `$HOME/.jslint.conf` to apply your setting globally\n\n## License\n\nSee LICENSE file.\n\n[JSLint]: http://jslint.com/\n","publish_time":1383754169645,"_cnpm_publish_time":1383754169645,"dist-tags":{"latest":"0.12.1"}}