# @types/codependency

> TypeScript definitions for codependency

Latest version **0.1.8** (published 2025-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/codependency
pnpm add @types/codependency
yarn add @types/codependency
bun add @types/codependency
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2025-11-14 |
| First published | 2016-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51484 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/codependency
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codependency
- npm.io page: https://npm.io/package/@types/codependency

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.1.8 (latest) — 2025-11-14
- 0.1.7 (ts4.5) — 2023-11-07
- 0.1.5 (ts4.3) — 2023-09-04
- 0.1.4 (ts3.6) — 2021-07-08
- 0.1.3 (ts2.0) — 2017-04-17
- 0.1.6 — 2023-10-17
- 0.1.2 — 2017-03-31
- 0.1.1 — 2017-01-19
- 0.1.0 — 2016-11-23

## README

# Installation
> `npm install --save @types/codependency`

# Summary
This package contains type definitions for codependency (https://github.com/Wizcorp/codependency).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codependency.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codependency/index.d.ts)
````ts
/// <reference types="node" />

export as namespace codependency;

export interface DependencyInfo {
    supportedRange: string | null;
    installedVersion: string | null;
    isInstalled: boolean | null;
    isValid: boolean | null;
    pkgPath: string;
}

export interface RequirePeerFunctionOptions {
    optional?: boolean | undefined;
    dontThrow?: boolean | undefined;
}

export interface RequirePeerFunction {
    (name: string, options?: RequirePeerFunctionOptions): any;
    resolve(name: string): DependencyInfo;
}

export function register(baseModule: NodeJS.Module, options?: { index: string[] }): RequirePeerFunction;
export function get(middlewareName: string): RequirePeerFunction;

````

### Additional Details
 * Last updated: Fri, 14 Nov 2025 18:02:08 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Morgan Benton](https://github.com/morphatic).

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