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

ruxe

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruxe - npm Package Compare versions

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 @@