amp-site-validator
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "amp-site-validator", | ||
"version": "0.0.1", | ||
"description": "Full site AMP Pages validator.", | ||
"version": "0.0.2", | ||
"description": "Full site AMP Pages validator", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
# amp-site-validator | Full site AMP Pages validator. | ||
# amp-site-validator | Full site AMP Pages validator | ||
@@ -18,4 +18,7 @@ If you publish your pages in AMP, you want to be sure any change does not affect your AMP performance. How? Setup a function generator that returns all URLS you want to validate and test them with the official Google's validator. | ||
// 3. Set the number of parallel jobs and validate! | ||
const results = await validator(urlGenerator, 10); // This will fetch and validate 10 pages at the same time | ||
console.log(results); | ||
async function run(){ | ||
const results = await validator(urlGenerator, 10); // This will fetch and validate 10 pages at the same time | ||
console.log(results); | ||
} | ||
run(); | ||
``` | ||
@@ -37,4 +40,4 @@ | ||
``` | ||
console.log('Valid pages : '+ results.filter( results => result.status === 'PASS').length) | ||
console.log('Invalid pages : '+ results.filter( results => result.status !== 'PASS').length) | ||
console.log('Valid pages : '+ results.filter( result => result.status === 'PASS').length) | ||
console.log('Invalid pages : '+ results.filter( result => result.status !== 'PASS').length) | ||
``` | ||
@@ -41,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4049
49