Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
amp-validator-prebuilt
Advanced tools
A validator for the AMP HTML format.
This is a very first release, rough on the edges. Fasten your seatbelts.
Prerequisite: Linux Ubuntu 14 or similar, or Mac OS X 10.11.x or later
###Mac OS X
See Building a command-line AMP Validator: Mac OS X.
###Linux
Install these packages using apt-get:
Then, run build.py
. It creates dist/validate
, a script which
can print AMP HTML validation errors to the console.
$ dist/validate
usage: validate <file.html>
$ dist/validate testdata/minimum_valid_amp.html
PASS
$ touch empty.html
$ dist/validate empty.html
FAIL
empty.html:1:0 The mandatory tag 'html doctype' is missing or
incorrect. [MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'html ⚡ for top-level html' is
missing or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#ampd)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'head' is missing or incorrect.
(see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#crps)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'link rel=canonical' is missing
or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#canon)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'meta charset=utf-8' is missing
or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#chrs)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'meta name=viewport' is missing
or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#vprt)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'body' is missing or incorrect.
(see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#crps)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'amphtml engine v0.js script' is
missing or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'noscript enclosure for
boilerplate' is missing or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#boilerplate)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'boilerplate (js enabled)' is
missing or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#boilerplate)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
empty.html:1:0 The mandatory tag 'boilerplate (noscript)' is
missing or incorrect. (see
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#boilerplate)
[MANDATORY_AMP_TAG_MISSING_OR_INCORRECT]
FAQs
Validator for AMP HTML (www.ampproject.org)
The npm package amp-validator-prebuilt receives a total of 7 weekly downloads. As such, amp-validator-prebuilt popularity was classified as not popular.
We found that amp-validator-prebuilt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.