{"library":"standard","title":"JavaScript Standard Style","type":"library","description":"Standard is a JavaScript style guide, linter, and formatter designed for simplicity and consistency. It enforces a strict, opinionated code style with zero configuration, aiming to eliminate bike-shedding over stylistic choices. Currently at version 17.1.2, it sees active maintenance with minor releases frequently addressing dependency updates and bug fixes, while major versions, like v17.0.0, primarily focus on synchronizing with the broader ESLint ecosystem rather than introducing new rules. Key differentiators include its 'no configuration' philosophy, automatic code formatting via `standard --fix`, and early detection of style issues and common programmer errors, saving time in code reviews. It functions as an all-in-one alternative to separate tools like ESLint and Prettier, using ESLint under the hood but abstracting away its configuration complexity.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install standard"],"cli":{"name":"standard","version":null}},"imports":["npx standard --fix","import { lintText } from 'standard'","import { lintFiles } from 'standard'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://standardjs.com","github":"https://github.com/standard/standard","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/standard","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"/* eslint-disable no-unused-vars */\nconst fs = require('fs')\n\nfunction exampleFunc(arg1) {;\n  var unusedVar = 10\n  const myString = \"hello world\"\n\n  if (arg1 == null) {\n    console.log(myString)\n  }\n}\n\n// Save this to a file like 'broken.js'\n// Then run 'npx standard broken.js --fix'\n// You can also add `\"test\": \"standard\"` to your package.json scripts and run `npm test`\n","lang":"javascript","description":"Demonstrates `standard`'s automatic fixing capabilities by showing a JavaScript file with common style violations (semicolons, var, ==, double quotes) and the command to fix them.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}