Closed pdehaan closed 9 years ago
Maybe something like this (passing in a boolean colors
value into the finepack options
arg).
Not sure if there is an easy way to default colors to true
for the CLI and false
for the API.
var options = {
filename: filename,
lint: true,
colors: false
}
finepack(filedata, options, function(err, output, messages){
if (err) {...}
});
Give me 24h for do it :-)
On Monday, March 9, 2015, Peter deHaan notifications@github.com wrote:
Maybe something like this (passing in a boolean colors value into the finepack options arg). Not sure if there is an easy way to default colors to true for the CLI and false for the API.
var options = { filename: filename, lint: true, colors: false }
finepack(filedata, options, function(err, output, messages){ if (err) {...} });
— Reply to this email directly or view it on GitHub https://github.com/Kikobeats/finepack/issues/10#issuecomment-77913063.
You're awesome!
check the new 2.1.0
tagged version. I updated the documentation as well (changes in the code here).
If you detect a bug, please report it! :-)
I'm using the API example from the README file, and notice that my output has all the chalk color codes sprinkled through the messages. Not sure if there is a flag or setting to disable the colors when I'm using the API instead of having to pass the
--no-color
flag via the CLI.Versus: