
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
vanilla-js-match-height
Advanced tools
A jQuery free equivilent of jQuery match height, a simple, lightweight way to make elements the same height.
A jQuery free equivilent of jQuery match height, a simple, lightweight way to make elements the same height. At 2kb ( 1.1kb Gziped ) this tiny package packs a big punch of functionality with helpers to make your life easier.
npm install vanilla-js-match-height
import MatchHeight from 'vanilla-js-match-height';
Or include the script in your HTML.
<script async src="vanilla-js-match-height/dist/index.js"></script>
( Basic usage )
import MatchHeight from 'vanilla-js-match-height';
// New MatchHeight - The only required parameter
// is the element class at the start. The second parameter
// is an optional object for the settings. The 3 settings
// that can be passed into this object are, parent, byRow
// and timeOut.
new MatchHeight(Element, Options);
// Full Example of the format
new MatchHeight('.my-class',
{
parent: '.my-parent', // A parent class or ID to group items ( Default value : null )
byRow: true, // Use the elemnt offset to group them by row ( Default value : true )
timeOut: 300 // Sets A Timout On Load mainly for sliders ( Default value : 50 )
}
);
Out of the box Vanilla JS Match Height will update on resize and will recalculate the rows on resize too.
See the Docs for the full list of options.
Josh Donnell
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
FAQs
A jQuery free equivilent of jQuery match height, a simple, lightweight way to make elements the same height.
We found that vanilla-js-match-height 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.