missing-dependency-error
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

missing-dependency-error

A simple extension of the JavaScript Error object (read on MDN) to be thrown when a dependency isn't provided.

Installation

npm install missing-dependency-error

Usage

import MissingDependencyError from "missing-dependency-error";

let err = new MissingDependencyError("SomeDependency");

The above example will create a MissingDependencyError object with the message:

Missing dependency: SomeDependency

License

This is licensed under the MIT license. See the LICENSE file for more information.

Package Sidebar

Install

npm i missing-dependency-error

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jameskmonger