A simple and composable way to validate data in JavaScript. Superstruct makes it easy to define interfaces and then validate JavaScript data against them. Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.
validation types interface structs schema api array assert cast check checker collection data error express hapi invalid joi json list model object orm scalar struct throw type valid validate validatorUseful for handling only some types of errors and let the rest pass through.Returns a thunk that returns a Promise.
promise catch if conditional cond iff chain throw error reject rejected handler filter filtered predicate exception thunk function async await promises combinator bluebirdBy default, promises fail silently if you don't attach a .catch() handler to them.This tool keeps track of unhandled rejections globally. If any remain unhandled at the end of your process, it logs them to STDERR.
promise promises unhandled uncaught rejection loud fail catch throw handler exit debug debugging verbosePromises fail silently if you don't attach a .catch() handler.This module exits the process with an error message right away when an unhandled rejection is encountered. Note: That might not be desirable as unhandled rejections can be handled at a future point in time, although not common. You've been warned.
promise promises unhandled uncaught rejection hard fail catch throw handler exit debug debugging verbose immediate immediatelyIt makes simple throw qualified errors. Inspired in errno, create-error-class and fault. This library is a compromise to provide a clean API for use Error native class.
error-handling constructor custom error simple throwCheck's instances Hash Codes and Class Names. If __fluent is TRUE, then the methods that return undefined, this instance will return.
class inheritance constructor prototype class-inheritance instance sjs-class sjsclass simple framework lib easy methods method functions function dynamic constants extend protected private public static fluent interface property super web app api exception throw throws prevent override properties defineproperty🌍 全局捕获Crash。信NeverCrash,永不Crash。
crash uncaught-exceptions uncaught exception throwaway throw handler thread global never nevercarchDebug and detect MaxListenersExceededWarning: Possible EventEmitter memory leak detected warnings
node memory catch error debug listeners leak max-listeners-exceeded-warning max exceeded warning throw possible eventemitter event emitter emit
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.