handle-cli-error

💣 Error handler for CLI applications 💥

MIT License

Downloads
16.7K
Stars
28
Committers
2

Bot releases are hidden (Show)

handle-cli-error - v5.0.0 Latest Release

Published by ehmicky 12 months ago

Breaking changes

  • Minimal supported Node.js version is now 18.18.0
handle-cli-error - v4.0.2

Published by ehmicky over 1 year ago

Dependencies

  • Upgrade internal dependencies
handle-cli-error - v4.0.1

Published by ehmicky over 1 year ago

Dependencies

  • Upgrade internal dependencies
handle-cli-error - v4.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported Node.js version is now 16.17.0
handle-cli-error - v3.1.1

Published by ehmicky almost 2 years ago

Bug fixes

  • Fix TypeScript types
handle-cli-error - Release 3.1.0

Published by ehmicky almost 2 years ago

Features

  • Improve tree-shaking support
handle-cli-error - Release 3.0.1

Published by ehmicky almost 2 years ago

Bug fixes

  • Fix handling of errors that do not have any stack trace
handle-cli-error - Release 3.0.0

Published by ehmicky about 2 years ago

Breaking changes

  • Renamed the short option to stack. Its value is inverted.

Before:

handleCliError(error, { short: true })

After:

handleCliError(error, { stack: false })
  • The error's name is now always logged even if stack is false.

Features

  • The colors option has been added to show colors. It defaults to true in terminals.
  • Quoted strings in the error message are now colorized.
  • An icon is now prepended to the error's name. This can be configured using the icon option.
  • The error's icon and name are now logged in red by default. This can be configured using the header option.
  • The props option has been added to hide error properties.
handle-cli-error - Release 2.5.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix package.json
handle-cli-error - Release 2.5.0

Published by ehmicky about 2 years ago

  • Switch to MIT license
handle-cli-error - Release 2.4.2

Published by ehmicky about 2 years ago

Bug fixes

  • Revert browsers support
handle-cli-error - Release 2.4.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix error validation message
handle-cli-error - Release 2.4.0

Published by ehmicky about 2 years ago

Features

  • Improve options validation
handle-cli-error - Release 2.3.0

Published by ehmicky about 2 years ago

Features

  • Improve options validation
handle-cli-error - Release 2.2.0

Published by ehmicky about 2 years ago

Features

  • Ensure error properties and colors are printed
handle-cli-error - Release 2.1.0

Published by ehmicky about 2 years ago

Features

  • Browsers support
handle-cli-error - Release 2.0.0

Published by ehmicky about 2 years ago

Breaking changes

handle-cli-error - Release 1.1.1

Published by ehmicky about 2 years ago

Bug fixes

  • Print error name and message on Firefox and Safari
handle-cli-error - Release 1.1.0

Published by ehmicky about 2 years ago

Features

  • Reduce npm package size
handle-cli-error - Release 1.0.1

Published by ehmicky about 2 years ago

Initial release

Package Rankings
Top 5.19% on Npmjs.org
Badges
Extracted from project README
Node TypeScript Codecov Mastodon Medium