UNPKG

crypt-uniid

Version:

A secure, efficient, and machine-aware unique ID generator using timestamp, counter, and SHA-256 hashing.

12 lines 321 B
class CustomErrors extends Error { constructor(name, message, statusCode) { super(message); this.code = statusCode; this.name = name; this.type = 'Reference error' if (Error.captureStackTrace) { Error.captureStackTrace(this, CustomErrors); } } } module.exports = CustomErrors;