Skip to content

v1.0.0

Choose a tag to compare

@ZLouisMiguel ZLouisMiguel released this 18 Apr 18:01
· 72 commits to main since this release

Added

  • parser.js — extracts error type, message, file, and line number from raw
    Node.js Error objects. Filters Node internals and node_modules from the
    stack trace so only user code frames are surfaced
  • hints.js — 40+ hint entries covering TypeErrors, ReferenceErrors,
    SyntaxErrors, RangeErrors, URIErrors, AssertionErrors, file system errors
    (ENOENT, EACCES, EPERM, EEXIST, EISDIR, ENOTDIR, ENOTEMPTY,
    EMFILE), network errors (ECONNREFUSED, ECONNRESET, ETIMEDOUT,
    EADDRINUSE, EADDRNOTAVAIL, EPIPE, EAI_AGAIN, EHOSTUNREACH),
    and async/Promise errors
  • formatter.js — renders structured error output to the terminal in three
    sections: error type and message, file location and line number, and
    developer hint. Zero-dependency colorization via raw ANSI codes
  • index.js — entry point that hooks into process.on('uncaughtException')
    and process.on('unhandledRejection') to intercept all unhandled errors
    automatically on require
  • Full JSDoc documentation across all source files
  • Windows-compatible path handling in formatter.js