Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "ruxe", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "src/index.js", | ||
@@ -8,3 +8,17 @@ "scripts": { | ||
}, | ||
"keywords": ["cli", "string", "text", "wrap", "paragraph", "manipulation","para", "stanza", "format", "color", "console", "formatting", "command-line-tool"], | ||
"keywords": [ | ||
"cli", | ||
"string", | ||
"text", | ||
"wrap", | ||
"paragraph", | ||
"manipulation", | ||
"para", | ||
"stanza", | ||
"format", | ||
"color", | ||
"console", | ||
"formatting", | ||
"command-line-tool" | ||
], | ||
"author": "jaipack17", | ||
@@ -16,3 +30,6 @@ "license": "MIT", | ||
"description": "format strings into paragraphs along with text styling.", | ||
"repository": "https://github.com/jaipack17/ruxe" | ||
"repository": "https://github.com/jaipack17/ruxe", | ||
"dependencies": { | ||
"center-align": "^1.0.1" | ||
} | ||
} |
@@ -12,2 +12,3 @@ /** | ||
const colors = require("../utils/colors"); | ||
var center = require('center-align'); | ||
@@ -90,16 +91,10 @@ /** | ||
} | ||
/* | ||
else if (p[1] == "center") { | ||
for(var i = 0; i < a.length; i++){ | ||
let spaces = Math.round((maxLen - a[i].length)/2); | ||
if(spaces == 0) { | ||
fin += " ".repeat(5) + a[i] + "\n" | ||
} else { | ||
fin += " ".repeat(spaces) + a[i] + "\n"; | ||
} | ||
} | ||
let centered = center(a); | ||
centered.forEach(line => { | ||
fin += line + "\n"; | ||
}) | ||
return fin; | ||
} | ||
*/ | ||
return s; | ||
@@ -106,0 +101,0 @@ } |
@@ -1,1 +0,1 @@ | ||
module.exports = ["right", "left"] | ||
module.exports = ["right", "left", "center"] |
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
9650
12
1
133
+ Addedcenter-align@^1.0.1
+ Addedalign-text@1.0.2(transitive)
+ Addedcenter-align@1.0.1(transitive)
+ Addedkind-of@5.1.0(transitive)
+ Addedlongest@2.0.1(transitive)
+ Addedrepeat-string@1.6.1(transitive)