Skip to content

Commit

Permalink
Use Buffer.from (Buffer() is deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 19, 2018
1 parent 24038ce commit 09634d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/log.js
@@ -1,8 +1,8 @@
const chalk = require('chalk');
const { config } = require('./config');

const MOVE_LEFT = new Buffer('1b5b3130303044', 'hex').toString();
const CLEAR_LINE = new Buffer('1b5b304b', 'hex').toString();
const MOVE_LEFT = Buffer.from('1b5b3130303044', 'hex').toString();
const CLEAR_LINE = Buffer.from('1b5b304b', 'hex').toString();

const { log, error } = console;

Expand Down

0 comments on commit 09634d2

Please sign in to comment.