Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
basic-current-anchor
Advanced tools
An anchor (link) that highlights itself when its destination matches the current location.
An anchor (link) that highlights itself when its destination matches the current location.
Such a link commonly appears in toolbars, side bars, and other navigation elements. In these situations, you generally want the user to understand what page or area the user is already on.
When the link is current — when it points to the current location — the
link will have the CSS current
class applied to it, and its current
property will be true.
Note: one limitation of this component is that, by default, the link does not show the standard link color (usually blue) and text decoration (underline). However, in navigation elements like toolbars, you often will want to explicitly specific link colors anyway, e.g., to reflect your application's visual style and brand.
Kind: global class
boolean
True if the link points to an area within a site, not just a single page.
If true, the matching rule to determine whether the link is current changes: an area link is considered to be current if the link's destination forms a prefix of the current location (instead of matching the complete URL).
Kind: instance property of CurrentAnchor
boolean
True if the link's destination matches the current page location.
If this is true, the element will have an current
CSS class applied to it.
Kind: instance property of CurrentAnchor
FAQs
An anchor (link) that highlights itself when its destination matches the current location.
The npm package basic-current-anchor receives a total of 1 weekly downloads. As such, basic-current-anchor popularity was classified as not popular.
We found that basic-current-anchor 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.