JSPM

@darkwolf/custom-error.cjs

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10478F
  • License MIT

CustomError

Package Exports

  • @darkwolf/custom-error.cjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@darkwolf/custom-error.cjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

API Documentation

Contact Me

GitHub: @PavelWolfDark

Telegram: @PavelWolfDark

Email: PavelWolfDark@gmail.com