Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amp-site-validator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amp-site-validator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc