# dependant

> dependency manager

Latest version **0.0.3** (published 2013-07-14) · MIT license · 0 weekly downloads

## Install

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

Provides the command `dep`.

## 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.3 |
| Published | 2013-07-14 |
| First published | 2013-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Giles Lavelle |
| Maintainers | lavelle |

## Links

- npm: https://www.npmjs.com/package/dependant
- Repository: https://github.com/lavelle/dependant
- Issues: https://github.com/lavelle/dependant/issues
- npm.io page: https://npm.io/package/dependant

## Dependencies (1)

- [optimist](https://npm.io/package/optimist.md) *

## Recent versions

- 0.0.3 (latest) — 2013-07-14
- 0.0.2 — 2013-07-13
- 0.0.1 — 2013-07-13

## README

# Dependant

Dependant is a dependency manager for frontend JavaScript. Unlike AMD, there's no enforced format. If a library can be used with `<script>` tags, it works with Dependant.

## Install

    [sudo] npm install -g dependant

## Configure

Create a file `deps.json` in your project root that looks something like this:

```js
{
    "vendor": { // Third party code in here
        "base": "res", // Optional, defaults to "js"
        "packages": {
            "jquery": {},
            "underscore": {},
            "backbone" : {
                "deps": ["jquery", "underscore"] // Optional, defaults to []
            },
            "ace": {
                "path": "ace/src/ace.js" // Optional, defaults to base/name.js
            }
        }
    },
    "app": { // Your code in here
        "packages": {
            "modal": {},
            "settings": {
                "deps": ["modal"]
            },
            "toolbar": {},
            "main": {
                "deps": ["settings"]
            }
        }
    }
}
```

## Use

Run `dep > all.js` from the project root.  Dependant will work out what order the files need to be in, then concatenate all the files in that order into `all.js`. Then stick `<script src="all.js"></script>` into your HTML.

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