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
npm install gulp-amphtml-validator
Typescript
Module System
Node Version
NPM Version
70.3
Supply Chain
89.5
Quality
76.6
Maintenance
100
Vulnerability
100
License
2501101900000
Published on 14 Jan 2025
2410292120000
Published on 05 Nov 2024
2410250306000
Published on 29 Oct 2024
2410161801000
Published on 22 Oct 2024
2410081535000
Published on 15 Oct 2024
2410031633000
Published on 08 Oct 2024
JavaScript (79.92%)
HTML (9.11%)
C++ (7.54%)
CSS (2.22%)
TypeScript (0.55%)
Python (0.28%)
Starlark (0.15%)
Yacc (0.12%)
Shell (0.08%)
Go (0.03%)
Total Downloads
111,876
Last Day
10
Last Week
119
Last Month
1,351
Last Year
17,719
14,895 Stars
22,542 Commits
3,894 Forks
632 Watching
166 Branches
1,175 Contributors
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
Publised On
23 Jul 2024
Cumulative downloads
Total Downloads
Last day
-9.1%
10
Compared to previous day
Last week
-61.6%
119
Compared to previous week
Last month
-17.9%
1,351
Compared to previous month
Last year
35.5%
17,719
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
25 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
SAST tool is run on all commits
Details
Reason
security policy file detected
Details
Reason
GitHub workflow tokens follow principle of least privilege
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
37 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-14T21:49:04Z
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