# install-requires

> Installs all missing dependencies require'd in your code for quick and dirty prototyping

Latest version **0.0.1** (published 2014-08-17) · MIT license · 0 weekly downloads

## Install

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

Provides the command `install-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.0.1 |
| Published | 2014-08-17 |
| First published | 2014-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sean West |
| Maintainers | seanewest |
| Keywords | npm, install, dependencies, require |

## Links

- npm: https://www.npmjs.com/package/install-requires
- npm.io page: https://npm.io/package/install-requires

## Dependencies (2)

- [browserify](https://npm.io/package/browserify.md) ^4.2.3
- [installify](https://npm.io/package/installify.md) ^0.1.1

## Recent versions

- 0.0.1 (latest) — 2014-08-17
- 0.0.0 — 2014-06-13

## README

#install-requires

**Warning: this module is currently in a dirty-hack stage.**

Install all dependencies require'd within your JS code without needing a package.json. Intended for quick and dirty prototyping.

## Why?
* Copy and paste code and run it (almost) immediately.
* Throw together scratch code without having to set up a package.json.
* Be lazy

## Installation
```
npm install -g install-requires
```

## Usage
Recursively walk through all dependencies in a js file and install any that are missing:
```
install-requires mycode.js
```

You can also include multiple js files:
```
install-requires mycode.js mycode2.js mycode3.js
```

## Features wanted
* print the dependencies that are being installed
* option to ```--save``` or ```--save-dev``` when a package.json exists:
* don't be a dirty hack

## It's a dirty hack
Currently this abuses [browserify](https://github.com/substack/node-browserify) and [installify](https://github.com/hughsk/installify) to get the job done. This should be written in a more dignified way, but works as is for now.

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