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

ruxe

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruxe - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

examples/center_aligned.js

23

package.json
{
"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"
}
}

15

src/index.js

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