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

asciify

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asciify - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

8

lib/figlet-js/figlet.js

@@ -70,4 +70,8 @@ /**

},
write: function(str, font, fn) {
if (!str) {
return fn(null, "");
}
Figlet.parseFont(font, function(err) {

@@ -83,3 +87,3 @@ if (err) {

}
for (i = 0, height = chars[0].length; i < height; i++) {
for (i = 0; i < chars[0].length; i++) {
for (var j = 0; j < len; j++) {

@@ -86,0 +90,0 @@ result += chars[j][i];

@@ -16,3 +16,47 @@ var figlet = require("../figlet-node.js").Figlet;

});
},
"Test render empty string": function (test) {
test.expect(2);
figlet.write("", "standard", function (er, text) {
test.ifError(er);
test.strictEqual("", text);
test.done();
});
},
"Test render undefined": function (test) {
test.expect(2);
figlet.write(undefined, "standard", function (er, text) {
test.ifError(er);
test.strictEqual("", text);
test.done();
});
},
"Test render null": function (test) {
test.expect(2);
figlet.write(null, "standard", function (er, text) {
test.ifError(er);
test.strictEqual("", text);
test.done();
});
},
"Test render false": function (test) {
test.expect(2);
figlet.write(false, "standard", function (er, text) {
test.ifError(er);
test.strictEqual("", text);
test.done();
});
}
};
{
"name": "asciify",
"version": "1.3.1",
"version": "1.3.2",
"description": "Plain text awesomizer. A hybrid npm module and CLI for turning plain text into ascii art.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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