Skip to content

Darkwolf/node-custom-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

Contact Me

Telegram: @PavelWolfDark

About

CustomError

Resources

License

Stars

Watchers

Forks

Packages

No packages published