{"id":13635647,"url":"https://github.com/reid/node-jslint","last_synced_at":"2025-04-24T05:18:05.227Z","repository":{"id":44428122,"uuid":"461999","full_name":"reid/node-jslint","owner":"reid","description":"The JavaScript Code Quality Tool — for Node.js.","archived":false,"fork":false,"pushed_at":"2022-07-11T01:59:39.000Z","size":696,"stargazers_count":491,"open_issues_count":19,"forks_count":101,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-24T05:17:44.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jslint.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2010-01-07T07:21:15.000Z","updated_at":"2024-06-12T19:15:29.000Z","dependencies_parsed_at":"2022-09-02T17:14:23.368Z","dependency_job_id":null,"html_url":"https://github.com/reid/node-jslint","commit_stats":null,"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reid%2Fnode-jslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reid%2Fnode-jslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reid%2Fnode-jslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reid%2Fnode-jslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reid","download_url":"https://codeload.github.com/reid/node-jslint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566521,"owners_count":21451234,"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":[],"created_at":"2024-08-02T00:00:48.889Z","updated_at":"2025-04-24T05:18:05.204Z","avatar_url":"https://github.com/reid.png","language":"JavaScript","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","funding_links":[],"categories":["Please find below the links to awesome cheat-sheet and resources:","JavaScript","Uncategorized"],"sub_categories":["Javascript:","Code Quality","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freid%2Fnode-jslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freid%2Fnode-jslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freid%2Fnode-jslint/lists"}