module-not-found-error

WebJar for module-not-found-error

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

module-not-found-error
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

module-not-found-error
WebJar for module-not-found-error
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/bendrucker/module-not-found-error

Download module-not-found-error

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/module-not-found-error/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>module-not-found-error</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/module-not-found-error/
implementation 'org.webjars.npm:module-not-found-error:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/module-not-found-error/
implementation ("org.webjars.npm:module-not-found-error:1.0.1")
'org.webjars.npm:module-not-found-error:jar:1.0.1'
<dependency org="org.webjars.npm" name="module-not-found-error" rev="1.0.1">
  <artifact name="module-not-found-error" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='module-not-found-error', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "module-not-found-error" % "1.0.1"
[org.webjars.npm/module-not-found-error "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

module-not-found-error Build Status

Create a module not found error

Install

$ npm install --save module-not-found-error

Usage

var moduleNotFoundError = require('module-not-found-error')

var err = moduleNotFoundError('foo')
//=> err.message: Cannot find module 'foo'
//=> err.code: 'MODULE_NOT_FOUND'

API

moduleNotFoundError(id) -> err

Returns an error with the appropriate message and code.

id

Required
Type: string

A module name or path passed to require.

License

MIT © Ben Drucker

Versions

Version
1.0.1