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.
@wezz/ariatabmanager
Advanced tools
This is a Tab Management script that takes advantage of [ARIA Manager](https://github.com/wezz/ARIAManager) By adding data attributes to markup it will take care of aria attributes which can e used to style the tabs.
This is a Tab Management script that takes advantage of ARIA Manager By adding data attributes to markup it will take care of aria attributes which can e used to style the tabs.
npm install @wezz/ariamanager
npm install @wezz/ariatabmanager
import ARIAManager from "@wezz/ariamanager";
import ARIATabManager from "@wezz/ariatabmanager";
// On document ready
new ARIAManager();
new ARIATabManager();
The constructor can take the following options object:
const ariaOptions = {
parent: document.body, // This defined the entrypoint where ARIA Manager will query for relevant elements
initiateElements: true // This disables the automatic initiation
};
new ARIAManager(ariaOptions);
new ARIATabManager(ariaOptions);
<div data-tab-container>
<button aria-controls="mycontent1" aria-pressed="false" data-tab-button>Tab 1</button>
<button aria-controls="mycontent2" aria-pressed="false" data-tab-button>Tab 2</button>
<div data-tab-contentcontainer>
<div id="mycontent1" aria-hidden="false" data-tab-content>Tab 1</div>
<div id="mycontent2" aria-hidden="true" data-tab-content>Tab 2</div>
</div>
</div>
There is a additional parameter data-tab-selection-mode which will allow users to close all tabs.
<div data-tab-container data-tab-selection-mode="allownone">...</div>
Clone this repo
Run
npm install
To run the demo, run
npm run dev
FAQs
This is a Tab Management script that takes advantage of [ARIA Manager](https://github.com/wezz/ARIAManager) By adding data attributes to markup it will take care of aria attributes which can e used to style the tabs.
The npm package @wezz/ariatabmanager receives a total of 36 weekly downloads. As such, @wezz/ariatabmanager popularity was classified as not popular.
We found that @wezz/ariatabmanager demonstrated a healthy version release cadence and project activity because the last version was released less than 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’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.