greedy-wrap
Advanced tools
Comparing version 0.1.6 to 0.2.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4994
95
+ Addedlodash.toarray@4.4.0(transitive)
+ Addedlongest-length@0.1.1(transitive)
- Removedlongest-length@0.0.1(transitive)
Updatedlongest-length@0.1.1