# is-dependency

> I really dumb node module that tells you if the name package is a dependency

Latest version **0.0.0** (published 2018-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-dependency
pnpm add is-dependency
yarn add is-dependency
bun add is-dependency
```

## 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.0 |
| Published | 2018-02-21 |
| First published | 2018-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andre Garvin |
| Maintainers | andre_garvin |
| Keywords | dependency, modules |

## Links

- npm: https://www.npmjs.com/package/is-dependency
- npm.io page: https://npm.io/package/is-dependency

## Recent versions

- 0.0.0 (latest) — 2018-02-21

## README

# isDependency: A really dumb node module

### This module tells you wether or not if the name of a package is a dependency of another package.

```bash
npm i is-dependency -S
```

```js
const isDependency = require('is-dependency')

// this looks for the most relative node_modules path and check if axios exists
const dependent = await isDependency('axios')
```

```js
// returns a boolean value wether the pacakge 'is-buffer' is a dependency to 'express'
await isDependency('express', 'is-buffer')
```


```js
// This will return a object
await isDependency('rimraf', ['bar', 'foo', 'is-dumb'])
/*
{
    foo: false,
    bar: false,
    'is-dumb': false // more like this module itself
}
*/
```

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