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.8 to 0.0.9

4

index.js

@@ -98,6 +98,6 @@ function truncateTextNode (

if (rootElement.scrollHeight <= maximumHeight) {
return
return false
}
truncateElementNode(
return truncateElementNode(
rootElement,

@@ -104,0 +104,0 @@ rootElement,

{
"name": "line-clamp",
"version": "0.0.8",
"version": "0.0.9",
"description": "Line clamp a DOM element in vanilla JavaScript.",

@@ -12,8 +12,8 @@ "author": "Lim Yuan Qing",

"devDependencies": {
"concurrently": "^3.5.1",
"concurrently": "^4.1.0",
"ecstatic": "^3.2.0",
"gzip-size-cli": "^2.1.0",
"opn-cli": "^3.1.0",
"gzip-size-cli": "^3.0.0",
"opn-cli": "^4.0.0",
"prettier-standard": "^8.0.0",
"standard": "^11.0.0",
"standard": "^12.0.1",
"uglify-js": "^3.3.12",

@@ -20,0 +20,0 @@ "watchify": "^3.11.0"

@@ -58,2 +58,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)

Returns `true` if text was truncated, else returns `false`.
`options` is an optional object literal.

@@ -60,0 +62,0 @@

Sorry, the diff of this file is not supported yet

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