Skip to content

neverUsedGithub/Pretty-Errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pretty-Errors

Prettifies Node runtime errrors.

Usage

import prettyErrors from "pretty-errors";

prettyErrors(() => {
    console.log(something.that.doesnt.exist);
});
at tests\test.js:3:1 
    │
  3 │ prettyErrors(() => {
    │ ‾‾‾‾‾‾‾‾‾‾‾‾
at index.js:206:16 in function prettyErrors
    │
206 │         return funct();
    │                ‾‾‾‾‾
at tests\test.js:4:17
    │
  4 │     console.log(something.that.doesnt.exist);
    │                 ‾‾‾‾‾‾‾‾‾
    ╰── ReferenceError: something is not defined

About

Prettifies Node runtime errors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published