Packages

kleur

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

Your version

21 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.1.5

    26 Jun 2022
    • Add "types" export conditions for Node16 TypeScript module resolution (#57): 06f28e0
      Thank you @calebeby~!

    • Handle undefined process.env with fallback (#54): ec20016
      For browser/vite support. Thank you @farnabaz~!

  3. 4.1.4

    22 Jan 2021

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  4. 4.1.3

    30 Sep 2020
    • Add existence process.stdout check for browser-like polyfills (#42): 01963cc
      Bundlers like parcel, webpack, and browserify polyfill process but don't include a stdout implementation.
      Thank you @tinchoz49~!

  5. 4.1.2

    26 Sep 2020
  6. 4.1.1

    19 Aug 2020
    • (types): Ensure kleur/colors type definitions can be resolved: 06923d0, cc66a6f

  7. 4.1.0

    13 Aug 2020
  8. 4.0.3

    31 Jul 2020
    • Ensure process is defined before setting process-based values (#36): 303e502
      This allows for kleur to be imported into browsers without any bundle-shimming.

      NOTE: ANSI code support varies between browsers, but typically colors and background-colors work (never modifiers).

  9. 4.0.2

    24 Jun 2020
    • 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
  10. 4.0.1

    19 Jun 2020
    • Revert to Node 6.x minimum support: 8c01d93
      The code works perfectly in that environment, so there's no reason not to.Truth be told, it was only bumped to 10.x because of the test runner constraint.

    • (types) fix kleur/colors overloaded definition: f2f33a8
      Original print order assumed that every export returned null, which is not true.

  11. 4.0.0

    17 Jun 2020
    • Added native ESM support with exports map (for Node 12.18.x, Node 14+) (#30): 2da16a9
      Thank you @kristoferbaxter~!

    • Added module package entry (for bundler and PikaCDN) (#31): 2da16a9

    • Added new kleur/colors entry module: 049c080

  12. 3.x
  13. 3.0.3

    7 Apr 2019
  14. 3.0.2

    7 Feb 2019
    • Ensure this context isn't overridden by global (#18): 3d3a4cb

  15. 3.0.1

    7 Dec 2018
  16. 3.0.0

    15 Nov 2018

    This version is an intentional departure from the Chalk-like syntax. Any previous kleur chains (those with more than one color) will not work with 3.0 and will require slight changes. Most libraries can expect to update their usage within a few minutes!

  17. 2.x
  18. 2.0.2

    28 Aug 2018
  19. 2.0.1

    21 Jul 2018
  20. 2.0.0

    20 Jul 2018
  21. 1.x
  22. 1.0.2

    17 Jul 2018
  23. 1.0.1

    11 Jul 2018
  24. 1.0.0

    10 Jul 2018
  25. 0.0.x
  26. 0.0.0

    8 Jul 2018

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.