console-powers

Craft beautiful browser console messages. Debug & inspect data with elegant outputs. Small & tree-shakable.

MIT License

Downloads
29
Stars
769
Committers
5

Bot releases are hidden (Show)

console-powers - Latest Release

Published by astoilkov 5 months ago

  • ✨ new options.keys for filtering object keys da551a4
  • ✨ tries to guess DevTools/inspector width and set options.wrap to it when options.wrap is auto b3156be
  • ✨ print extra properties on arrays as well b31bb92
  • 🔀 consoleInspect(), no longer sort keys b4326b2
  • 🐛 🔀 don't align long object keys 24760bc
  • 🐛 text doesn't wrap in DevTools when it doesn't contain spaces e4290b7
  • 🐛 oops, wrap allows only the number 100 8205d9b

https://github.com/astoilkov/console-powers/compare/v0.7.0...v0.8.0

console-powers -

Published by astoilkov 8 months ago

  • consoleInspect() add Map support def4fd2
  • ✨ improve Set output dd9bb0a
  • ✨ better adapt on available line length de745b9
  • consoleInspect() multi-line object keys to use highlight color (as DevTools) 03bf901
  • consoleInspect(string) to show as normal text (as DevTools) 82bb286
  • ✨ make max string length adaptive 5036e42
  • ✨ improve Date printing 3c36d8e
  • ✨ escape \n, \t, \r in strings (as DevTools) a3a8d17
  • 🔀 consoleTable(), rename options.lineLengthoptions.wrap 876188c
  • 🔀 🔥 deprecate options.line property 2460027
  • 🐛 don't include undefined/null values in the style string 9d2f4af
  • 🐜 consoleInspect() apply bigger line-height only for non-primitive types 0cc0bdc

https://github.com/astoilkov/console-powers/compare/v0.6.0...v0.7.0

console-powers -

Published by astoilkov 8 months ago

  • ✨ inline objects/arrays in consoleTable() 77a71da 4a964b2
  • ✨ new options.wrap property that's more powerful with auto, single-line, multi-line or number (for switching to multi-line at the specified length) 4a964b2
  • 🔀 old options.lineLength is now removed in favor of options.wrap 4a964b2
  • 🔀 consistent styling of array index and object key in consoleTable() 2760ab8
  • 🔀 the default cell horizontal spacing is now 2 spaces (an option for that coming soon)
  • 🐛 consoleTable() cell padding is incorrectly +1 space on the right 88d9b92
  • 🐛 consoleTable() last column doesn't have a left border 7a3743e
  • 🐛 tables with one column and one row don't render right and bottom borders respectively e115aa9
  • 🐛 empty object has two empty spaces between the brackets 529fe82
  • 🐜 add ConsoleObject to possible types in consoleGroup({ header }) option 9334997

https://github.com/astoilkov/console-powers/compare/v0.5.0...v0.6.0

console-powers -

Published by astoilkov 9 months ago

  • 🔀 rename expandDepthdepth (breaking change) aa8b68c
  • ✨ add support for non-plain objects (ex: HTMLElement) 05385ab
  • ✨ add lineLength property (experimental) efba75f
  • ✨ add print: boolean option to consoleInspect() and consoleTable() methods bbdc981
  • ✨ add support dark mode + add theme option dc512c4
  • 🐛 fix border color in dark theme 9925a65

https://github.com/astoilkov/console-powers/compare/v0.4.0...v0.5.0

console-powers -

Published by astoilkov 10 months ago

  • ✨ make Date without specified time to print only the date part dccca50
  • ✨ style BigInt differently from number (as DevTools) d02d36b
  • consoleTable(), add support for array of objects 59dc76c
  • consoleTable(), improve flat objects and arrays styling 883706d
  • 🔀 ConsoleMessageConsoleSpan 047c8da
  • 🔀 consoleTable(), make header text bold 119632d
  • 🔀 when line: true, show line at first level as well 4adde75
  • 🐛 style booleans (as DevTools) e86c3b0
  • 🐛 string color is not the same as DevTools df7241a
  • 🐜 allow undefined to be passed to ConsoleStyle d6511d6

https://github.com/astoilkov/console-powers/compare/v0.3.0...v0.4.0

console-powers -

Published by astoilkov 10 months ago

  • ✨ add support for inspecting dates 7232838
  • ✨ inspect, add array length at the end of line a552705
  • 🐛 undefined & null color isn't the same as in DevTools 1d38105
  • ✨ primitive arrays & objects to print even when expandDepth is reached 463473a
  • 🐛 single line objects don't need indentation in front 9b2db3e
  • ✨ add a group when inspecting a primitive array 206fa9d
  • ✨ inspecting an array to use multi-line when no available space 50339b4
  • ✨ inspecting object to use multi-line when no available space 2d0efd6
  • 🐛 string color isn't exactly the same as DevTools 1509835
  • ✨ trim longer strings 8d4302a
  • ✨ add extras ff5e9c8
  • 🔀 consoleLine()consoleFlush() 81d8658
  • consoleOrderedList() 69078fc

https://github.com/astoilkov/console-powers/compare/v0.2.2...v0.3.0

console-powers -

Published by astoilkov 10 months ago

For 9 years, I didn't push a single commit to this repo. I recently fell in love with the idea once again and rewrote the entire library.

https://github.com/astoilkov/console-powers/compare/v0.2.1...v0.2.2

console-powers -

Published by astoilkov 10 months ago

For 9 years, I didn't push a single commit to this repo. I recently fell in love with the idea once again and rewrote the entire library.

https://github.com/astoilkov/console-powers/compare/v0.2.0...v0.2.1

console-powers -

Published by astoilkov 10 months ago

For 9 years, I didn't push a single commit to this repo. I recently fell in love with the idea once again and rewrote the entire library.

https://github.com/astoilkov/console-powers/compare/0.1.0...v0.2.0

console-powers - 0.1.0

Published by astoilkov over 9 years ago