Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heightify

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heightify

A module for setting the same height on given elements

  • 5.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

heightify

A module for setting the same heights on given element.

Build Status

Install

$ git clone https://github.com/oyvindhermansen/heightify.git
$ npm install

Usage

import heightify from 'heightify'

// vanilla JS selector
heightify({
  element: document.querySelectorAll('div'),
  hasImages: true, // uses imagesLoaded
  destroyOnSize: 500
})

// With jQuery selector
heightify({
  element: $('div'),
})

Options

The only required key for heightify is element. The rest is optional.

  • hasImages
  • destroyOnSize

Example on how it works with cards

alt tag

Development

$ npm run dev This will run on both src/ and examples/

Build:

For production: $ npm run build

Tests

  • $ npm test
  • $ npm run test:watch

Contribute

If you want to contribute, feel free to make a pull request or file an issue:) Feature requests are also welcome!

Keywords

FAQs

Package last updated on 04 Feb 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc