Comparing version 1.2.1 to 1.2.2
@@ -7,3 +7,4 @@ /* | ||
fs = require('fs'), | ||
fontDir = __dirname + '/../fonts/'; | ||
path = require('path'), | ||
fontDir = path.join(__dirname, '/../fonts/'); | ||
@@ -23,3 +24,3 @@ /* | ||
fs.readFile(fontDir + name + '.flf', {encoding: 'utf-8'}, function(err, fontData) { | ||
fs.readFile( path.join(fontDir, name + '.flf'), {encoding: 'utf-8'}, function(err, fontData) { | ||
if (err) { | ||
@@ -49,3 +50,3 @@ return next(err); | ||
var fontData = fs.readFileSync(fontDir + name + '.flf', {encoding: 'utf-8'}); | ||
var fontData = fs.readFileSync( path.join(fontDir, name + '.flf'), {encoding: 'utf-8'}); | ||
@@ -52,0 +53,0 @@ fontData = fontData + ''; |
{ | ||
"name": "figlet", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Creates ASCII Art from text. A full implementation of the FIGfont spec.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
1416
3105999
307