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

greedy-wrap

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greedy-wrap - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

8

package.json
{
"name": "greedy-wrap",
"version": "0.1.6",
"version": "0.2.0",
"description": "A recursive greedy algorithm implementation for the word wrap process.",

@@ -29,3 +29,3 @@ "license": "MIT",

"ansi-regex": "^2.0.0",
"longest-length": "0.0.1",
"longest-length": "0.1.1",
"string-length": "^1.0.1",

@@ -36,5 +36,5 @@ "substr-ansi": "0.0.3",

"devDependencies": {
"ava": "^0.14.0",
"xo": "^0.14.0"
"ava": "^0.17.0",
"xo": "^0.17.0"
}
}
# greedy-wrap [![Build Status](https://travis-ci.org/danilosampaio/greedy-wrap.svg?branch=master)](https://travis-ci.org/danilosampaio/greedy-wrap)
> A recursive greedy algorithm implementation for the word wrap process.
> It also correctly calculate the width of the words containing ansi escape codes.
> It also correctly calculates the width of the words containing ANSI escape codes and astral symbols.

@@ -55,2 +55,9 @@

words.
greedyWrap('Ayo Silver! 🦄🦄🦄', {width: 15})
//=> Result:
Ayo Silver! 🦄🦄🦄
```

@@ -57,0 +64,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