# @item-enonic-types/lib-router

> TypeScript types for Enonic XP

Latest version **4.0.0** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @item-enonic-types/lib-router
pnpm add @item-enonic-types/lib-router
yarn add @item-enonic-types/lib-router
bun add @item-enonic-types/lib-router
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-09-24 |
| First published | 2022-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Tom Arild Jakobsen |
| Maintainers | tajakobsen |
| Keywords | enonic |

## Links

- npm: https://www.npmjs.com/package/@item-enonic-types/lib-router
- Repository: https://github.com/ItemConsulting/enonic-types
- Homepage: https://github.com/ItemConsulting/enonic-types#readme
- Issues: https://github.com/ItemConsulting/enonic-types/issues
- npm.io page: https://npm.io/package/@item-enonic-types/lib-router

## Dependencies (1)

- [@enonic-types/core](https://npm.io/package/@enonic-types/core.md) ^8.0.0

## Recent versions

- 4.0.0 (latest) — 2026-09-24
- 3.1.0 — 2025-02-28
- 3.0.1 — 2024-12-12
- 3.0.0 — 2022-10-26

## README

# Item Enonic Types – Router Lib

[![npm version](https://badge.fury.io/js/@item-enonic-types%2Flib-router.svg)](https://badge.fury.io/js/@item-enonic-types%2Flib-router)

## Installation

Install *@item-enonic-types/lib-router* from npm by running:

```bash
npm i --save-dev @item-enonic-types/lib-router
```

## Usage

To the types for the `"/lib/router"`-module, you need to include the following in your *tsconfig.json* :

```json
{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "/lib/xp/*": ["./node_modules/@enonic-types/lib-*"],
      "/lib/*": ["./node_modules/@item-enonic-types/lib-*" ,"./src/main/resources/lib/*"]
    }
  }
}
```

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