Skip to content

Jameskmonger/missing-dependency-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An extension of Error to throw for missing dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published