windows - Disable terminal escape sequences in node.js output -
i'm using karma on node.js run tests part of build script. when running command standalone, looks this:
however, when run part of build job becomes this:
testjs: node node_modules\karma\bin\karma start lib\tests.conf.js ←[33mwarn [karma]: ←[39mport 19876 in use ←[32minfo [karma]: ←[39mkarma v0.12.28 server started @ http://localhost:19877/ ←[32minfo [launcher]: ←[39mstarting browser phantomjs ←[32minfo [phantomjs 1.9.8 (windows 8)]: ←[39mconnected on socket tw-csawb8prcsvl-qysr id 81276065
which gets bit hard read. apparently node has sort of support translating ansi escape sequences windows console apis, gets lost when redirecting or capturing output (the file written when doing shell redirect contains escape sequences well).
is there way suppress colours? node --help
mentions $env:node_disable_colors
, however, seems repl , doesn't me running script.
nevermind, found line in karma config:
// enable / disable colors in output (reporters , logs) colors: true,
which forgot change.
Comments
Post a Comment