# detect-invalid-requires

> utility to detect requires that are not legal in a case-sensitive OS

Latest version **0.1.11** (published 2014-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install detect-invalid-requires
pnpm add detect-invalid-requires
yarn add detect-invalid-requires
bun add detect-invalid-requires
```

Provides the command `detect-invalid-requires`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.11 |
| Published | 2014-11-14 |
| First published | 2014-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | justin j. moses |
| Maintainers | justinjmoses |

## Links

- npm: https://www.npmjs.com/package/detect-invalid-requires
- Repository: https://github.com/justinjmoses/detect-invalid-requires
- Issues: https://github.com/justinjmoses/detect-invalid-requires/issues
- npm.io page: https://npm.io/package/detect-invalid-requires

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) =1.0.x
- [walker](https://npm.io/package/walker.md) 1.0.x
- [esprima](https://npm.io/package/esprima.md) 1.2.x
- [esquery](https://npm.io/package/esquery.md) 0.3.x
- [commander](https://npm.io/package/commander.md) 2.3.x

## Recent versions

- 0.1.11 (latest) — 2014-11-14
- 0.1.10 — 2014-11-14
- 0.1.9 — 2014-11-10
- 0.1.8 — 2014-10-17
- 0.1.7 — 2014-10-17
- 0.1.6 — 2014-10-17
- 0.1.5 — 2014-10-17
- 0.1.4 — 2014-10-16
- 0.1.2 — 2014-10-15
- 0.1.1 — 2014-10-15
- 0.1.0 — 2014-10-15
- 0.0.1 — 2014-10-13

## README

[![Build Status](https://travis-ci.org/justinjmoses/detect-invalid-requires.png)](https://travis-ci.org/justinjmoses/detect-invalid-requires)

**-- Defunct --**

**Notice: This repository is no longer worked on**

Please use [valiquire](https://github.com/thlorenz/valiquire) - it more fully supports node module paths (including folder and absolute paths).


***************
***************

Simple utility to detect invalid relative require paths that do not exist.
It is case-sensitive, so in particular it is useful when developers are all on
case insensitive dev machines (OSX and Windows), yet CI server is Linux.

Usage
===

CLI
---

install globally via

    npm install -g detect-invalid-requires

run via

    detect-invalid-requires [options] (files)

###Options

`-i, --ignore list` Comma delimited list of path strings to ignore

###Example

    detect-invalid-requires -i thirdparty,3rd .

API
----

```javascript
detector(path: String, options: Object = {}, callback: Function(files:Array[{file, path}]))
```

###Example

```javascript
var detector = require('detect-invalid-requires')

detector('./some/path', options, function (invalids) {
    invalids.forEach(function (invalid) {
        console.error('File ', invalid.file, ' contains required module that cannot be found ', invalid.path);
    })
})
```

---
_Source: https://npm.io/package/detect-invalid-requires · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
