# @types/uri-templates

> TypeScript definitions for uri-templates

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

## Install

```sh
npm install @types/uri-templates
pnpm add @types/uri-templates
yarn add @types/uri-templates
bun add @types/uri-templates
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

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

## Links

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

## Recent versions

- 0.1.34 (latest) — 2023-11-07
- 0.1.32 (ts4.3) — 2023-08-30
- 0.1.31 (ts3.4) — 2021-02-18
- 0.1.30 (ts2.0) — 2019-01-23
- 0.1.33 — 2023-10-18
- 0.1.29 — 2018-08-01
- 0.1.28 — 2016-09-19
- 0.1.27 — 2016-07-14
- 0.1.26-alpha — 2016-07-08
- 0.1.25-alpha — 2016-07-04
- 0.1.24-alpha — 2016-07-02
- 0.1.23-alpha — 2016-07-02
- 0.1.22-alpha — 2016-07-01
- 0.1.21-alpha — 2016-05-25
- 0.1.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/uri-templates/versions

## README

# Installation
> `npm install --save @types/uri-templates`

# Summary
This package contains type definitions for uri-templates (https://github.com/geraintluff/uri-templates).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uri-templates.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uri-templates/index.d.ts)
````ts
declare function utpl(template: string): utpl.URITemplate;

declare namespace utpl {
    export interface URITemplate {
        fillFromObject(vars: { [key: string]: string | { [key: string]: string } }): string;
        fill(callback: (varName: string) => string): string;
        fill(vars: { [key: string]: string | { [key: string]: string } }): string;
        fromUri(uri: string): { [key: string]: string } | undefined;
        varNames: string[];
        template: string;
    }
}

export = utpl;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [Bartek Szczepański](https://github.com/barnski).

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