{"id":21521125,"url":"https://github.com/weisjohn/best","last_synced_at":"2026-02-22T23:10:03.075Z","repository":{"id":66434729,"uuid":"215442088","full_name":"weisjohn/Best","owner":"weisjohn","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-10T03:07:36.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T11:43:05.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weisjohn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-16T02:46:12.000Z","updated_at":"2024-06-22T02:57:32.000Z","dependencies_parsed_at":"2023-04-30T02:04:12.907Z","dependency_job_id":null,"html_url":"https://github.com/weisjohn/Best","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/weisjohn/Best","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2FBest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2FBest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2FBest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2FBest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weisjohn","download_url":"https://codeload.github.com/weisjohn/Best/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2FBest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29730342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-24T01:05:54.984Z","updated_at":"2026-02-22T23:10:03.042Z","avatar_url":"https://github.com/weisjohn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# best\n\nrun arbitrarily defined best practice tests\n\n### quick start\n\n1. Clone the repo: `git clone https://github.com/clevertech/Best.git`\n2. Install dependencies `npm install`\n3. Create a global binary for the cli `npm link`\n\n### usage\n\n```javascript\nvar config = { 'url': 'http://example.net/' };\n\nbest(config, function(err, rules) {\n  console.log('failing rules', rules.fail);\n  console.log('passing rules', rules.pass);\n});\n```\n\n### cli\n\nFirst, define a [`.bestrc`](./.bestrc) file in the directory you wish to use, then run `$ best`. If any rules fail, `best` returns a non-zero exit code. This is helpful if you wish to include it as part of a build process.\n\nAlternatively, specify config via command-line parameters: `$ best --url http://example.net`\n\n`best` also has a simple JSON reporter, if you wish to capture the output: `$ best -o`\n\n### configuration\n\n`best` ships with [predefined rules](./rules/README.md), which you may ignore by adding to your config a `rules` object, with the name of the rule marked as ignore, similar to `.eslintrc` configuration:\n\n```javascript\n{\n  \"url\": \"http://example.net/\",\n  \"rules\": {\n    \"cache\": [0]\n  }\n}\n```\n\nYou can additionally specify [your own rules](./rules/README.md) by attaching them to the \"rules\" object.\n\n\n### debug\n\n`best` uses [`debug`](https://www.npmjs.com/package/debug) heavily to show what's going on under the hood: `$ DEBUG=\"best:*\" best`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweisjohn%2Fbest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweisjohn%2Fbest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweisjohn%2Fbest/lists"}