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.
dom-zindex
Advanced tools
English | 简体中文
Web common z-index style management.
7+ ✔ | 80+ ✔ | 44+ ✔ | 40+ ✔ | 60+ ✔ | 6+ ✔ |
npm install dom-zindex
<script src="https://unpkg.com/dom-zindex"></script>
import domZIndex from 'dom-zindex'
// Gets the largest z-index on the page.
domZIndex.getMax()
// Set main current z-index.
domZIndex.setCurrent(1000)
// Get main current z-index.
domZIndex.getCurrent() // 1000
// Get main next z-index.
domZIndex.getNext() // 1001
// Get subordinate current z-index, the secondary z-index will always be greater than the primary z-index.
domZIndex.getSubCurrent() // 2001
// Get subordinate next z-index.
domZIndex.getSubNext() // 2002
import domZIndex from 'dom-zindex'
// If the incoming z-index is less than global, the next one is automatically fetched.
let currZIndex1 = 888
currZIndex1 = domZIndex.getCurrent(currZIndex1) // 1000
// If the z-index is greater than the global value, the value is returned.
let currZIndex2 = 2000
currZIndex2 = domZIndex.getCurrent(currZIndex2) // 1500
Thank you to everyone who contributed to this project.
MIT © 2019-present, Xu Liangzhan
FAQs
Web common z-index style management
The npm package dom-zindex receives a total of 5,225 weekly downloads. As such, dom-zindex popularity was classified as popular.
We found that dom-zindex 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.