# @types/express-debug

> TypeScript definitions for express-debug

Latest version **1.1.36** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/express-debug
pnpm add @types/express-debug
yarn add @types/express-debug
bun add @types/express-debug
```

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.36 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.1.36 (latest) — 2023-11-07
- 1.1.33 (ts3.6) — 2021-07-08
- 1.1.32 (ts2.3) — 2017-10-25
- 1.1.31 (ts2.0) — 2017-08-21
- 1.1.35 — 2023-10-18
- 1.1.34 — 2023-09-23
- 1.1.30 — 2016-09-19
- 1.1.29 — 2016-07-14
- 1.1.28-alpha — 2016-07-08
- 1.1.27-alpha — 2016-07-04
- 1.1.26-alpha — 2016-07-02
- 1.1.25-alpha — 2016-07-01
- 1.1.24-alpha — 2016-07-01
- 1.1.23-alpha — 2016-05-25
- 1.1.22-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/express-debug/versions

## README

# Installation
> `npm install --save @types/express-debug`

# Summary
This package contains type definitions for express-debug (https://github.com/devoidfury/express-debug).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-debug.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-debug/index.d.ts)
````ts
/* =================== USAGE ===================

    import debug = require('express-debug');
    debug(app, options);

 =============================================== */

import express = require("express");

interface CustomPanel {
    name: string;

    template: string;

    process(locals: any): any;

    standalone?: boolean | undefined;

    initialize?(req: express.Request): void;

    finalize?(req: express.Request): void;

    pre_render?(req: express.Request): void;

    post_render?(req: express.Request): void;

    options?: any;
}

/**
 * Node.js middleware for serving a favicon.
 */
declare function debug(app: express.Application, settings?: {
    /**
     * How deep to recurse through printed objects. This is the default unless the
     * print_obj function is passed an options object with a 'depth' property.
     */
    depth?: number | undefined;

    /**
     * Absolute path to a css file to include and override EDT's default css.
     */
    theme?: string | undefined;

    /**
     * Additional panels to show.
     */
    extra_panels?: CustomPanel[] | undefined;

    /**
     * Allows changing the default panel.
     */
    panels?: string[] | undefined;

    /**
     * Path to render standalone express-debug.
     */
    path?: string | undefined;

    /**
     * If you need to add arbitrary attributes to the containing element of EDT,
     * this allows you to.
     */
    extra_attrs?: string | undefined;

    /**
     * Global option to determine sort order of printed object values. false for
     * default order, true for basic default sort, or a function to use for sort.
     */
    sort?: boolean | ((a: number, b: number) => number) | undefined;
}): void;

export = debug;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:36 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express)

# Credits
These definitions were written by [Federico Bond](https://github.com/federicobond).

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