
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
element-unit-tests
Advanced tools
JavaScript tests for element-based units like EW, EH, EMIN, and EMAX provided as a JS module.
These functions are provided in two formats:
If you are using Node or other tools that can load commonjs modules you will want to use the index.js version of the library. The simplest way to get started is to require this module in another module with require() like this:
let elementUnit = require('../index.js')
An example of this can be found in tests/cjs-test.js
If you are using vanilla JS modules you will want to use the index.vanilla.js version of the library. The simplest way to get started is to import this module into another module like this:
import * as elementUnit from './path/to/index.vanilla.js'
An example of this can be found in tests/vanilla-test.html
Now the functions from this library (ew, eh, emin, emax) should be available for use inside this module as elementUnit.ew, elementUnit.eh, etc.
A functional demo of these functions being used for styling can be found in tests/demo.html
FAQs
JavaScript tests for element-based units
We found that element-unit-tests 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.