# requires

> like node-detective but trades AST correctness for speed

Latest version **1.0.2** (published 2014-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install requires
pnpm add requires
yarn add requires
bun add requires
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-10-07 |
| First published | 2013-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Maintainers | tjholowaychuk |
| Keywords | require |

## Links

- npm: https://www.npmjs.com/package/requires
- Repository: https://github.com/visionmedia/node-requires
- Issues: https://github.com/visionmedia/node-requires/issues
- npm.io page: https://npm.io/package/requires

## Recent versions

- 1.0.2 (latest) — 2014-10-07
- 1.0.1 — 2014-04-10
- 1.0.0 — 2013-11-14
- 0.0.1 — 2013-11-14

## README

# requires

  Super simple require parser, trades correctness for speed. If you
  do weird things like concat strings for require()s this will fail.

## Installation

```
$ npm install requires
```

## Example

js:

```js
var a = require('./a.js');
var b = require('./something/here/whoop');
var c = require("something");
```

parser output:

```js
[
  {
    "string": "require('./a.js')",
    "path": "./a.js",
    "index": 9
  },
  {
    "string": "require('./something/here/whoop')",
    "path": "./something/here/whoop",
    "index": 36
  },
  {
    "string": "require(\"something\")",
    "path": "something",
    "index": 79
  }
]
```

# License

  MIT

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