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

line-clamp

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

line-clamp - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "line-clamp",
"version": "0.0.5",
"version": "0.0.6",
"description": "Line clamp a DOM element in vanilla JavaScript.",

@@ -5,0 +5,0 @@ "author": "Lim Yuan Qing",

@@ -8,3 +8,4 @@ # line-clamp [![npm Version](http://img.shields.io/npm/v/line-clamp.svg?style=flat)](https://www.npmjs.com/package/line-clamp) [![Build Status](https://img.shields.io/travis/yuanqing/line-clamp.svg?branch=master&style=flat)](https://travis-ci.org/yuanqing/line-clamp)

- Supports appending a custom string instead of an ellipsis
- Exit if we detect that no truncation is necessary (ie. content does not overflow the element)
- Exit if we detect that content does not actually overflow the element
- 494 bytes gzipped

@@ -11,0 +12,0 @@ ## Usage

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