1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-07-11 12:41:06 +01:00

Replace colors with chalk.

Chalk has a few more options and doesn't mess around with
String.prototype.
This commit is contained in:
hacksalot
2016-01-01 04:44:14 -05:00
parent d54b9a6d6c
commit cb14452df3
10 changed files with 72 additions and 68 deletions

View File

@ -13,6 +13,7 @@ Definition of the ResumeFactory class.
require('string.prototype.startswith');
var FS = require('fs');
var ResumeConverter = require('./convert');
var chalk = require('chalk');
@ -85,8 +86,7 @@ Definition of the ResumeFactory class.
try {
// TODO: Core should not log
log( 'Reading '.info + /*orgFormat.toUpperCase().infoBold +*/
'resume: '.info + fileName.cyan.bold );
log( chalk.gray('Reading resume: ') + chalk.cyan.bold(fileName) );
rawData = FS.readFileSync( fileName, 'utf8' );
return {