Merge pull request #792 from sindresorhus/remove-moot-dep

Remove `supports-color` dependency as it's available in `chalk`
This commit is contained in:
Sebastian McKenzie
2015-02-17 08:53:42 +11:00
2 changed files with 1 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
// syntax highlighting based on https://github.com/dominictarr/ansi-highlight by the fantastic Dominic Tarr
var supportsColor = require("supports-color");
var tokenize = require("js-tokenizer");
var chalk = require("chalk");
var util = require("../util");
@@ -43,7 +42,7 @@ var highlight = function (text) {
module.exports = function (lines, lineNumber, colNumber) {
colNumber = Math.max(colNumber, 0);
if (supportsColor) {
if (chalk.supportsColor) {
lines = highlight(lines);
}