{"id":23779356,"url":"https://github.com/jimmytuc/seo-detection","last_synced_at":"2026-05-05T22:40:12.064Z","repository":{"id":82182551,"uuid":"127521409","full_name":"jimmytuc/seo-detection","owner":"jimmytuc","description":"SEO check lists detection","archived":false,"fork":false,"pushed_at":"2018-03-31T10:49:36.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T10:17:31.126Z","etag":null,"topics":["babel","checklists","es6","javascript","nodejs","seo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/jimmytuc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-31T10:12:39.000Z","updated_at":"2018-03-31T10:50:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"94e2b6e4-c819-4c1f-bcd4-4035a4d60e0d","html_url":"https://github.com/jimmytuc/seo-detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmytuc%2Fseo-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmytuc%2Fseo-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmytuc%2Fseo-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmytuc%2Fseo-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimmytuc","download_url":"https://codeload.github.com/jimmytuc/seo-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239979133,"owners_count":19728470,"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":["babel","checklists","es6","javascript","nodejs","seo"],"created_at":"2025-01-01T10:17:12.107Z","updated_at":"2026-04-10T10:30:18.350Z","avatar_url":"https://github.com/jimmytuc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jimmytuc/seo-detection.svg?branch=master)](https://travis-ci.org/jimmytuc/seo-detection)\n\n# Purpose\nThis package is for people who want to scan a HTML file and show all of the SEO defects.\nWrite with BabelJs ES6 syntax - have compatibility with all node versions.\nThanks to es6-module-boilerplate.\n\n# Compatible node version\nThis package uses Node version 6. Supported `node` version can be defined in `.babelrc`. \n\n# Features\n* Build with [Babel](https://babeljs.io). (ES6 -\u003e ES5)\n* Test with [mocha](https://mochajs.org).\n\n# Installation\n- `npm install --save seo-detection`\n\n# Run tests\n- `npm run test`\n- `npm run test:watch`\n\n# Run examples\n- `npm run test:examples`\n\n# Usage\n## Basic\n```\nvar sd = require('seo-detection')\nvar detection = new sd.Detection;\n```\nSet input\n```\nvar readPath = path.join(__dirname, '/path/to/index.html');\ndetection.fromFile(readPath)\n```\nYou can indicate type of output: `file` or `console`\n```\nvar writePath = path.join(__dirname, '/path/to/output.txt')\ndetection.toFile(writePath)\n```\nThen run `detection.run()`\nPlease note that we can use chain functions also.\n```\ndetection.fromFile(readPath).toFile(writePath).run()\n```\n\n## Input/Output Manipulation\n- `fromFile(readInputPath: String)`\n- `toFile(writeOutputPath: String)`\n\n## Customize Meta Tag\n### Constructor\nOverwrite the default options. For i.g: `allowedMetaTagRules` defaults `['description', 'keywords']`\n```\nnew Detection({\n    allowedMetaTagRules: ['description', 'keywords', 'robots']\n})\n```\n### Method\n`setMetaTagRules(newRules: String|Array\u003cString\u003e)`\n```\nvar dIns = new Detection;\ndIns.setMetaTagRules('cache-expire')\n```\nOr\n```\nvar dIns = new Detection;\ndIns.setMetaTagRules(['cache-expire', 'robots'])\n```\n\nPlease look at `examples` folder for more details.\n\n# Changelogs\n- `1.0.0` Class Detection, Input helpers, SEO detection methods, write tests for main features.\n- `1.0.1` Enhance detection features, modify `fromFile`, `toFile`. Added test cases on this.\n- `1.0.2` Write README.md, added `examples` for details usage.\n- `1.0.3` Build \u0026 Test with Travis CI\n\n# Todo\n- Add `eslint` standard to validate syntax.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmytuc%2Fseo-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimmytuc%2Fseo-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmytuc%2Fseo-detection/lists"}