New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trunc-html

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trunc-html - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "trunc-html",
"description": "truncate html by text length",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/bevacqua/trunc-html",

@@ -6,0 +6,0 @@ "author": {

@@ -27,3 +27,3 @@ # trunc-html

var html = 'the force is <strong>with this one</strong>. some more rubbish';
trunc(html, { limit: 30 });
trunc(html, 30);
// <-

@@ -46,2 +46,6 @@ // { html: 'the force is <strong>with this one</strong>. …',

# related
- [`trunc-text`](https://github.com/bevacqua/trunc-text)
# license

@@ -48,0 +52,0 @@

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