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

wordwrapjs

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordwrapjs - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

lib/wordwrapjs.js

@@ -89,3 +89,7 @@ 'use strict'

words.forEach(function (word) {
if (word.length > options.width) {
var wordLength = options.ignore
? replaceIgnored(word, options.ignore).length
: word.length
if (wordLength > options.width) {
var letters = word.split('')

@@ -92,0 +96,0 @@ var section

2

package.json
{
"name": "wordwrapjs",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "1.1.1",
"version": "1.1.2",
"description": "Word-wrapping for javascript.",

@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/wordwrapjs.git",

@@ -81,2 +81,6 @@ var test = require('tape')

t.deepEqual(
wrap.lines('\u001b[4m--------\u001b[0m', { width: 10, break: true, ignore: /\u001b.*?m/g }),
[ '\u001b[4m--------\u001b[0m' ]
)
t.deepEqual(
wrap.lines(

@@ -83,0 +87,0 @@ 'onetwothreefour fivesixseveneight',

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