# @rezkit/tour-manager

> Tour Manager API Client

Latest version **0.6.4** (published 2025-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rezkit/tour-manager
pnpm add @rezkit/tour-manager
yarn add @rezkit/tour-manager
bun add @rezkit/tour-manager
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.4 |
| Published | 2025-08-27 |
| First published | 2023-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 341.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Leo Adamek |
| Maintainers | leoadamek, tomhood |

## Links

- npm: https://www.npmjs.com/package/@rezkit/tour-manager
- Repository: https://github.com/rezkit/tour-manager-js
- Homepage: https://github.com/rezkit/tours-js#readme
- Issues: https://github.com/rezkit/tours-js/issues
- npm.io page: https://npm.io/package/@rezkit/tour-manager

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.2.3
- [axios-logger](https://npm.io/package/axios-logger.md) ^2.6.2

## Recent versions

- 0.6.4 (latest) — 2025-08-27
- 0.4.0-beta.5 (beta) — 2024-08-07
- 0.6.3 — 2025-08-27
- 0.6.2 — 2025-08-27
- 0.6.1 — 2025-02-19
- 0.6.0 — 2025-02-19
- 0.5.0 — 2024-11-20
- 0.4.0-beta.4 — 2024-08-07
- 0.4.0-beta.3 — 2024-08-07
- 0.4.0-beta.2 — 2024-05-14
- 0.4.0-beta.1 — 2024-05-14
- 0.3.0-beta.7 — 2024-05-14
- 0.3.0-beta.6 — 2024-05-14
- 0.3.0-beta.5 — 2024-05-14
- 0.3.0-beta.4 — 2024-05-14
- … 10 more at https://npm.io/package/@rezkit/tour-manager/versions

## README

RezKit Tour Manager Client (JS)
===============================

Idiomatic TypeScript/JavaScript client to interact with the RezKit tour manager API.

Installation
------------

### npm

    npm add @rezkit/tours

### yarn

    yarn add @rezkit/tours


Usage 
-----

### Configure Credentials

API credentials can be provided either as a string of static credentials. 
Credentials can also be provided dynamically via a callback function which takes the request as a parameter.


#### Example: Use dynamic environment variables for API key

```typescript
import {CredentialProvider} from "@rezkit/tours";
import {AxiosRequestConfig} from "axios";
import TourManager from "@rezkit/tours";

// envProvider creates a function that returns the credentials from the specified env var
function envProvider(envKey: string): CredentialProvider {
    return async function (req: AxiosRequestConfig): Promise<string> {
        return process.env[envKey]
    }
}

const client = new TourManager({ api_key: envProvider('RK_API_KEY') })
```

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