@darkwolf/custom-error.cjs
v1.0.1
Published
CustomError
Downloads
8
Maintainers
Readme
CustomError
Install
ECMAScript (Node.js v12.x LTS or higher)
npm i --save @darkwolf/custom-error.mjs
CommonJS (Node.js v10.x LTS or higher)
npm i --save @darkwolf/custom-error.cjs
Using
// ECMAScript
import CustomError from '@darkwolf/custom-error.mjs'
// CommonJS
const CustomError = require('@darkwolf/custom-error.cjs')
new CustomError('Invalid value.', 'invalid-value')