Skip to content

Commit

Permalink
refactor: replace chalk with nanocolors (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 2, 2021
1 parent 6048415 commit 01ef59c
Show file tree
Hide file tree
Showing 3 changed files with 9,374 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const connect = require('connect');
const http = require('http');
const chalk = require('chalk');
const { underline } = require('nanocolors');
const Promise = require('bluebird');
const open = require('open');
const net = require('net');
Expand All @@ -25,7 +25,7 @@ module.exports = function(args) {
const addr = server.address();
const addrString = formatAddress(ip || addr.address, addr.port, root);

this.log.info('Hexo is running at %s . Press Ctrl+C to stop.', chalk.underline(addrString));
this.log.info('Hexo is running at %s . Press Ctrl+C to stop.', underline(addrString));
this.emit('server');

if (args.o || args.open) {
Expand Down
Loading

0 comments on commit 01ef59c

Please sign in to comment.