Skip to content

v4.0.2

Compare
Choose a tag to compare
@lukeed lukeed released this 24 Jun 23:27
· 19 commits to master since this release

Patches

  • Disable colorization if inside a TTY context (#33): 5c7353f
    Thank you @ai~!

    # Before:
    $ npx app.js > log.txt
    #=> The `log.txt` filled with ANSI codes 
    
    # After:
    $ npx app.js > log.txt
    #=> The `log.txt` is plain text
    
    # OVERRIDE:
    $ FORCE_COLOR=1 npx app.js > log.txt
    #=> The `log.txt` filled with ANSI codes; as requested

Chores

  • Add bash tests for ENV detection: 5c7353f
  • Update README with TTY explainer and example: 3a6a272, 3b3742a
  • Update test runner version: 5fd93ba