Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use the fail function to print an error and exit.

Usage

const http = require("http");
const fail = require("@zingle/fail");

// exits with 100 exit status on timeout
http
    .request("http://www.example.com/foo")
    .on("timeout", () => fail(new Error("took too long"), 100));

About

Node.js function to exit with error

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages