{"id":23855393,"url":"https://github.com/kimulaco/amphtml-validator-extra","last_synced_at":"2025-07-27T19:34:04.573Z","repository":{"id":44146576,"uuid":"131718547","full_name":"kimulaco/amphtml-validator-extra","owner":"kimulaco","description":"Enhanced package of amphtml-validator.","archived":false,"fork":false,"pushed_at":"2023-01-03T19:49:49.000Z","size":619,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T14:14:34.480Z","etag":null,"topics":["amp","amp-html"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimulaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-05-01T13:51:35.000Z","updated_at":"2019-06-08T15:53:05.000Z","dependencies_parsed_at":"2023-02-01T09:15:33.057Z","dependency_job_id":null,"html_url":"https://github.com/kimulaco/amphtml-validator-extra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimulaco/amphtml-validator-extra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimulaco%2Famphtml-validator-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimulaco%2Famphtml-validator-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimulaco%2Famphtml-validator-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimulaco%2Famphtml-validator-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimulaco","download_url":"https://codeload.github.com/kimulaco/amphtml-validator-extra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimulaco%2Famphtml-validator-extra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267413706,"owners_count":24083481,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["amp","amp-html"],"created_at":"2025-01-03T00:56:09.816Z","updated_at":"2025-07-27T19:34:04.525Z","avatar_url":"https://github.com/kimulaco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# amphtml-validator-extra\r\n\r\nEnhanced package of [amphtml-validator](https://www.npmjs.com/package/amphtml-validator).\r\n\r\nIt is possible to designate multiple URLs and file paths and verify them all together.\r\n\r\n## Use\r\n\r\n```js\r\nconst amphtmlValidator = require('amphtml-validator-extra');\r\nconst urls = [\r\n    'https://example.com/article-01.html?amp',\r\n    'https://example.com/article-02.html?amp',\r\n    'https://example.com/article-03.html?amp'\r\n];\r\n\r\namphtmlValidator.validateUrl(urls).then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n// [\r\n//   status: 'PASS'\r\n//   errors: [...]\r\n// ],\r\n// [\r\n//   status: 'FAIL',\r\n//   errors: [...]\r\n// ],\r\n// ...\r\n```\r\n\r\n## Methods\r\n\r\n### validateHtml\r\n\r\n```js\r\namphtmlValidator.validateHtml('\u003chtml amp\u003e...\u003c/html\u003e').then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n```\r\n\r\n|Argment|Type|Description|\r\n|:-|:-|:-|\r\n|html|`string`|AMP HTML sourde|\r\n\r\n### validateUrl\r\n\r\n```js\r\nlet urls = [\r\n    'https://example.com/article-01.html?amp',\r\n    'https://example.com/article-02.html?amp',\r\n    'https://example.com/article-03.html?amp'\r\n];\r\n\r\namphtmlValidator.validateUrl(urls).then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n```\r\n|Argment|Type|Description|\r\n|:-|:-|:-|\r\n|urls|`array` or `string`|AMP Page URL.|\r\n|option.auth.user|`string`|Basic auth user name.|\r\n|option.auth.password|`string`|Basic auth password.|\r\n|option.progress|`function`|Progress callback function.|\r\n\r\n### validateFile\r\n\r\n```js\r\nlet urls = [\r\n    './test/article-01.html',\r\n    './test/article-02.html',\r\n    './test/article-03.html'\r\n];\r\n\r\namphtmlValidator.validateFile(urls).then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n```\r\n\r\n|Argment|Type|Description|\r\n|:-|:-|:-|\r\n|urls|`array` or `string`|AMP Page URL.|\r\n|option.progress|`function`|Progress callback function.|\r\n\r\n## Option\r\n\r\nProgress callback function.\r\n\r\n### progress\r\n\r\n```js\r\nlet urls = [\r\n    'https://example.com/article-01.html?amp',\r\n    'https://example.com/article-02.html?amp',\r\n    'https://example.com/article-03.html?amp'\r\n];\r\nlet option = {\r\n    progress: (progress) =\u003e {\r\n        console.log(`${progress.index} / ${progress.max}`);\r\n    }\r\n};\r\n\r\namphtmlValidator.validateUrl(urls, option).then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n/*\r\n * 1 / 3\r\n * 2 / 3\r\n * 3 / 3\r\n */\r\n```\r\n\r\n### auth\r\n\r\n```js\r\nlet urls = [\r\n    'https://example.com/auth/article-01.html?amp',\r\n    'https://example.com/auth/article-02.html?amp',\r\n    'https://example.com/auth/article-03.html?amp'\r\n];\r\n\r\namphtmlValidator.validateUrl(urls, {\r\n    auth: {\r\n        user: 'username',\r\n        password: 'password'\r\n    }\r\n}).then((result) =\u003e {\r\n    console.log(result);\r\n});\r\n```\r\n\r\n## Lisence\r\n\r\n[MIT Lisence](https://github.com/kimulaco/amphtml-validator-extra/blob/master/LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimulaco%2Famphtml-validator-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimulaco%2Famphtml-validator-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimulaco%2Famphtml-validator-extra/lists"}