# dprs

> Dependency Resolver

Latest version **1.0.3** (published 2017-08-22) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2017-08-22 |
| First published | 2017-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ishi Ruy |
| Maintainers | ishi.ruy |
| Keywords | dependency, resolver, dprs, nhz.io |

## Links

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

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-08-22
- 1.0.2 — 2017-08-22
- 1.0.1 — 2017-08-22
- 1.0.0 — 2017-08-22

## README

# dprs

<p align="center">
  <a href="https://npmjs.org/package/dprs">
    <img src="https://img.shields.io/npm/v/dprs.svg?style=flat"
         alt="NPM Version">
  </a>
  
  <a href="https://travis-ci.org/nhz-io/dprs">
    <img src="https://img.shields.io/travis/nhz-io/dprs.svg?style=flat"
         alt="Travis Build">
  </a>

  <a href="https://coveralls.io/github/nhz-io/dprs">
    <img src="https://img.shields.io/coveralls/nhz-io/dprs.svg?style=flat"
         alt="Coveralls">
  </a>

  <a href="https://www.bithound.io/github/nhz-io/dprs">
    <img src="https://img.shields.io/bithound/code/github/nhz-io/dprs.svg?style=flat"
         alt="Bithound Status">
  </a>

  <a href="https://github.com/nhz-io/dprs/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/nhz-io/dprs.svg?style=flat"
         alt="License">
  </a>
</p>
<p align="center">
    <h3 align="center">Dependency Resolver</h3>
</p>

## Install
```bash
npm i -S dprs
```

## Usage

> Circular dependencies will never get resolved

```javascript
const DependencyResolver = require('dprs')

const dprs = new DependencyResolver()

dprs.add('foobar', ['foo', 'bar'])
dprs.add('barfoo', ['foo', 'bar'])
dprs.add('foo', ['bar'])

dprs.resolve('foobar') // -> false
dprs.resolve('barfoo') // -> false
dprs.resolve('foo')    // -> false

dprs.resolve('bar')    // -> true
dprs.resolve('foobar') // -> false
dprs.resolve('barfoo') // -> false

dprs.resolve('foo')    // -> true
dprs.resolve('foobar') // -> true
dprs.resolve('barfoo') // -> true
```

## Dev

```sh
git clone https://github.com/nhz-io/dprs
cd dprs
npm i
npm start
```

### Coverage
```sh
npm run coverage
npm run report
```

## License

### [MIT](LICENSE)

## Version 1.0.3

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