Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@double-great/alt-text
Advanced tools
Check for common issues found in alt text and suggests improvements to improve accessibility.
Alt text describes an image. This description provides context for people with low or no vision. The text is a fallback for users with images turned off or when an image fails to load.
The usefulness of alt text can be subjective. Context, detail, length, and relevance contribute to the quality of the description. Determining alt text quality is a manual effort, but there are patterns to avoid.
altText
checks for common issues found in alt text and suggests improvements.
Are you writing in markdown? We recommend using remark-lint-alt-text.
npm install @double-great/alt-text
If altText
detects an issue, it will return a warning to help you fix it. If altText
doesn't detect any issues it will return undefined
.
const altText = require("@double-great/alt-text");
console.log(altText("A child holding a photograph."));
// undefined
console.log(altText("A screenshot of a dog"));
// Alt text should not contain "screenshot of". Alt text should end in a period.
FAQs
Check for unhelpful alt text.
The npm package @double-great/alt-text receives a total of 270 weekly downloads. As such, @double-great/alt-text popularity was classified as not popular.
We found that @double-great/alt-text demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.