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

figlet

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figlet - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

test.js

13

lib/figlet.js

@@ -719,2 +719,3 @@ /*

prop;
/*

@@ -791,3 +792,3 @@ If the user is chosing to use a specific type of layout (e.g., 'full', 'fitted', etc etc)

figFonts[fontName] = {};
var lines = data.split("\n");

@@ -823,3 +824,3 @@ var headerData = lines.splice(0,1)[0].split(" ");

}
/*

@@ -841,3 +842,3 @@ All FIGlet fonts must contain chars 32-126, 196, 214, 220, 228, 246, 252, 223

}
/*

@@ -879,6 +880,8 @@ Parse out the context of the file and put it into our figFont object

cNum = parseInt(cNum, 10);
} else if ( /^-0[xX][0-9a-fA-F]+$/.test(cNum) ) {
cNum = parseInt(cNum, 16);
} else {
if (cNum === "") {break;}
// something's wrong
//console.log("Invalid data:"+cNum);
console.log("Invalid data:"+cNum);
parseError = true;

@@ -907,3 +910,3 @@ break;

}
next && next(null, opts);

@@ -910,0 +913,0 @@ };

{
"name": "figlet",
"version": "1.0.9",
"version": "1.0.10",
"description": "Creates ASCII Art from text. A full implementation of the FIGfont spec.",

@@ -27,2 +27,3 @@ "keywords": ["figlet", "ascii", "art", "banner", "ansi"],

"devDependencies": {
"async": "~0.9.0",
"grunt-contrib-jshint": "~0.6.0",

@@ -29,0 +30,0 @@ "grunt-contrib-clean": "~0.4.0",

@@ -219,1 +219,2 @@ ```

* 2013.12.28 v1.0.7 README update and minor tweaks.
* 2013.12.28 v1.0.10 Bug fixes.

@@ -6,3 +6,5 @@

var figlet = require('../lib/node-figlet'),
grunt = require('grunt');
grunt = require('grunt'),
fs = require('fs'),
async = require('async');

@@ -74,2 +76,30 @@ /*

},
/*
This test ensures that all fonts will load without error
*/
loadAll: function(test) {
var errCount = 0;
test.expect(1);
figlet.fonts(function(err, fonts) {
if (err) {
errCount++;
return;
}
async.eachSeries(fonts, function(font, next) {
figlet.text('abc ABC ...', {
font: font
}, function(err, data) {
if (err) {
errCount++;
}
next();
});
}, function(err) {
test.equal(errCount, 0, 'A problem occurred while testing one of the fonts.');
test.done();
});
});
},
};

Sorry, the diff of this file is not supported yet

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