Packages

kleur

4.1.5 · 26 Jun 2022MIT176.8M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.2

24 Jun 2020Where it was published

4.1.5 is the newest release of 4.x.

In short

1 fixed3 internal

Release note

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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.