# @khulnasoft/routing-utils

> Vercel routing utilities

Latest version **3.1.1** (published 2024-04-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @khulnasoft/routing-utils
pnpm add @khulnasoft/routing-utils
yarn add @khulnasoft/routing-utils
bun add @khulnasoft/routing-utils
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2024-04-11 |
| First published | 2023-12-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 75.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | nextlinux |

## Links

- npm: https://www.npmjs.com/package/@khulnasoft/routing-utils
- Repository: https://github.com/khulnasoft/devship
- Homepage: https://github.com/khulnasoft/devship#readme
- Issues: https://github.com/khulnasoft/devship/issues
- npm.io page: https://npm.io/package/@khulnasoft/routing-utils

## Dependencies (1)

- [path-to-regexp](https://npm.io/package/path-to-regexp.md) 6.1.0

## Recent versions

- 3.1.1 (latest) — 2024-04-11
- 3.0.1 — 2024-02-08
- 3.1.0 — 2023-12-23

## README

# @khulnasoft/routing-utils

Route validation utilities

## Usage

`npm add @khulnasoft/routing-utils`

```ts
import { normalizeRoutes } from '@khulnasoft/routing-utils';

const { routes, error } = normalizeRoutes(inputRoutes);

if (error) {
  console.log(error.code, error.message);
}
```

```ts
import { routesSchema } from '@khulnasoft/routing-utils';

const ajv = new Ajv();
const validate = ajv.compile(routesSchema);
const valid = validate([{ src: '/about', dest: '/about.html' }]);

if (!valid) console.log(validate.errors);
```

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