🎨 Replace colors module with chalk module

This commit is contained in:
brunosimon
2017-12-26 14:29:00 +01:00
parent 494bd401b9
commit 73bc3e174a
8 changed files with 87 additions and 59 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
const Project = require('./project.js')
const chalk = require('chalk')
class Projects
{
@@ -26,7 +27,7 @@ class Projects
if(this.config.debug >= 1)
{
console.log('projects > socket'.green.bold + ' - ' + 'connection'.cyan + ' - ' + socket.id.cyan)
console.log(`${chalk.green.bold('projects > socket')} - ${chalk.cyan('connection')} - ${chalk.cyan(socket.id)}`)
}
})
}