Gathering detailed insights and metrics for gulp-amphtml-validator
Gathering detailed insights and metrics for gulp-amphtml-validator
Gathering detailed insights and metrics for gulp-amphtml-validator
Gathering detailed insights and metrics for gulp-amphtml-validator
The AMP web component framework.
npm install gulp-amphtml-validator
Typescript
Module System
Node Version
NPM Version
JavaScript (79.94%)
HTML (9.1%)
C++ (7.53%)
CSS (2.22%)
TypeScript (0.55%)
Python (0.28%)
Starlark (0.15%)
Yacc (0.12%)
Shell (0.08%)
Go (0.03%)
Total Downloads
117,732
Last Day
44
Last Week
301
Last Month
1,298
Last Year
17,692
Apache-2.0 License
14,895 Stars
22,555 Commits
3,936 Forks
627 Watchers
170 Branches
1,174 Contributors
Updated on May 08, 2025
Minified
Minified + Gzipped
Latest Version
1.0.8
Package Id
gulp-amphtml-validator@1.0.8
Unpacked Size
12.76 kB
Size
3.66 kB
File Count
6
NPM Version
10.8.1
Node Version
20.12.2
Published on
Jul 23, 2024
Cumulative downloads
Total Downloads
Last Day
33.3%
44
Compared to previous day
Last Week
-10.9%
301
Compared to previous week
Last Month
-16%
1,298
Compared to previous month
Last Year
21.8%
17,692
Compared to previous year
3
A Gulp plugin for validating AMPHTML files using the official AMPHTML Validator.
Install package with npm and add it to your development dependencies:
1npm install --save-dev gulp-amphtml-validator
1const gulpAmpValidator = require('gulp-amphtml-validator'); 2 3gulp.task('amphtml:validate', () => { 4 return ( 5 gulp 6 .src('*.html') 7 // Validate the input and attach the validation result to the "amp" property 8 // of the file object. 9 .pipe(gulpAmpValidator.validate()) 10 // Print the validation results to the console. 11 .pipe(gulpAmpValidator.format()) 12 // Exit the process with error code (1) if an AMP validation error 13 // occurred. 14 .pipe(gulpAmpValidator.failAfterError()) 15 ); 16});
To treat warnings as errors, replace the last line of the validation closure with:
1// Exit the process with error code (1) if an AMP validation warning or 2// error occurred. 3.pipe(gulpAmpValidator.failAfterWarningOrError());
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
30 out of 30 merged PRs checked by a CI test -- score normalized to 10
Reason
all changesets reviewed
Reason
project has 17 contributing companies or organizations
Details
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
project is fuzzed
Details
Reason
license file detected
Details
Reason
12 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-07T08:55:45Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More