node-modules-regexp

WebJar for node-modules-regexp

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

node-modules-regexp
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

node-modules-regexp
WebJar for node-modules-regexp
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jamestalmage/node-modules-regexp

Download node-modules-regexp

How to add to project

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

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.

node-modules-regexp Build Status

A regular expression for file paths that contain a node_modules folder.

Install

$ npm install --save node-modules-regexp

Usage

let nodeModules = require('node-modules-regexp');

// alternate string export
let nodeModulesString = require('node-modules-regexp/string');
nodeModules = new RegExp(nodeModulesString);


nodeModules.test('/foo/node_modules/bar.js');
//=> true

nodeModules.test('/foo/bar.js');
//=> false

API

The returned value is a regular expression, soooo.....

License

MIT © James Talmage

Versions

Version
1.0.0