Comparing version 1.1.5 to 1.1.7
@@ -1,5 +0,5 @@ | ||
const wrap = require("ruxe"); | ||
const wrap = require("../src/index"); | ||
let textwrapped = wrap("Harry has a little farm, he has 4 cows, 15 chickens and 3 goats in his farm. He likes to grow a variety of crops such as wheat, barley, rice and corn! He loves farming! He also has good storage facilities in the farm and modern irrigation systems!", { align:"right" }); | ||
let textwrapped = wrap("Harry has a little farm, he has 4 cows, 15 chickens and 3 goats in his farm. He likes to grow a variety of crops such as wheat, barley, rice and corn! He loves farming! He also has good storage facilities in the farm and modern irrigation systems!", { align:"left", color:"magenta", separateAt: 20 }); | ||
console.log(textwrapped); |
{ | ||
"name": "ruxe", | ||
"version": "1.1.5", | ||
"version": "1.1.7", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -46,4 +46,3 @@ /** | ||
} | ||
return res.replace(/,/g, " "); | ||
return res.replace(/(\s)\1+/g, '$1'); | ||
} | ||
@@ -50,0 +49,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
9122
126