Remove supports-color dependency as it's available in chalk

This commit is contained in:
Sindre Sorhus
2015-02-16 22:28:51 +07:00
parent 39c5849604
commit af785126bf
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);
}

View File

@@ -59,7 +59,6 @@
"roadrunner": "1.0.4",
"source-map": "0.1.43",
"source-map-support": "0.2.9",
"supports-color": "1.2.0",
"useragent": "^2.1.5"
},
"devDependencies": {