Commit 0e6517da authored by Hasang Cho's avatar Hasang Cho
Browse files

fix(mod.ts): Improve NO_COLOR environment variable detection

parent 5e3f7824
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -13,8 +13,7 @@ import { command as nodeinfo } from "./nodeinfo.ts";
import { command as tunnel } from "./tunnel.ts";
import { command as webfinger } from "./webfinger.ts";

const colorEnabled = Deno.stdout.isTerminal() &&
  Deno.env.get("NO_COLOR") === undefined;
const colorEnabled = Deno.stdout.isTerminal() && !Deno.env.has("NO_COLOR");
setColorEnabled(colorEnabled);

const command = new Command()