搜索 npm 上的 JavaScript 依赖包
defekt is custom errors made simple.
A tiny library to create custom errors in JavaScript.
Straightforward ES6 class you can extend to make proper custom errors