thing-assert
Description
Nodejs's assert error has no status code. Through thing-assert you can define your own error status and capture from the thrown out error object.
Install
$ npm i thing-assert
Usage
const thingAssert = try catch error console // output 400
Questions & Suggestions
Please open an issue here.