Gathering detailed insights and metrics for amphtml-validator-rules
Gathering detailed insights and metrics for amphtml-validator-rules
npm install amphtml-validator-rules
Typescript
Module System
Node Version
NPM Version
78.4
Supply Chain
91.2
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (62.28%)
Dockerfile (37.72%)
Total Downloads
2,666
Last Day
1
Last Week
1
Last Month
6
Last Year
242
2 Stars
27 Commits
2 Forks
3 Watching
17 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.0
Package Id
amphtml-validator-rules@3.0.0
Unpacked Size
335.03 kB
Size
37.28 kB
File Count
4
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
-14.3%
6
Compared to previous month
Last year
-44.2%
242
Compared to previous year
5
Get all the rules that the amphtml-validator
uses.
Easy way to inspect the definition of certain AMPHTML components.
Makes it convenient for other libraries that are built on top of
AMPHTML, like react-amphtml
.
1const { tags } = require('amphtml-validator-rules'); 2 3console.log(( 4 tags.filter(({ tagName }) => tagName.toLowerCase() === 'template') 5));
Prints the following:
1[ 2 { 3 htmlFormat: [], 4 tagName: 'TEMPLATE', 5 specName: null, 6 extensionSpec: null, 7 requiresExtension: ['amp-mustache'], 8 mandatory: false, 9 mandatoryAlternatives: null, 10 unique: false, 11 uniqueWarning: false, 12 mandatoryParent: null, 13 mandatoryAncestor: null, 14 mandatoryAncestorSuggestedAlternative: null, 15 disallowedAncestor: ['TEMPLATE'], 16 descendantTagList: null, 17 alsoRequiresTagWarning: [], 18 satisfies: [], 19 requires: [], 20 deprecation: null, 21 deprecationUrl: null, 22 attrs: [167], 23 attrLists: [], 24 cdata: null, 25 childTags: null, 26 siblingsDisallowed: false, 27 mandatoryLastChild: false, 28 referencePoints: [], 29 specUrl: null, 30 ampLayout: null, 31 }, 32]
To build amphtml-validator-rules
Docker is needed because the validation rules
require Python and Protobuf to compile. Once, those are installed, build by
running npm run prepublishOnly
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
63 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-06
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