# @types/ns-api

> TypeScript definitions for ns-api

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

## Install

```sh
npm install @types/ns-api
pnpm add @types/ns-api
yarn add @types/ns-api
bun add @types/ns-api
```

## Health

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

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2023-11-07 |
| First published | 2017-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51419 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.0.6 (latest) — 2023-11-07
- 2.0.4 (ts4.2) — 2022-07-13
- 2.0.3 (ts3.7) — 2021-07-08
- 2.0.2 (ts2.3) — 2018-08-02
- 2.0.5 — 2023-10-18
- 2.0.1 — 2017-10-25
- 2.0.0 — 2017-01-29

## README

# Installation
> `npm install --save @types/ns-api`

# Summary
This package contains type definitions for ns-api (https://github.com/fvdm/nodejs-ns-api#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ns-api.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ns-api/index.d.ts)
````ts
export = nsApi;
declare function nsApi(conf: nsApi.Configuration): nsApi;

interface nsApi {
    /**
     * Vertrektijden - departure times
     *
     * @param station - Station ID
     */
    vertrektijden(station: string, callback: (err: string, data: {}) => void): void;

    /**
     * Reisadvies - travel advise
     */
    reisadvies(params: {}, callback: (err: string, data: {}) => void): void;

    /** Prijzen - tariffs */
    prijzen(params: {}, callback: (err: any, data: {}) => void): void;

    /**
     * List available stations
     *
     * @param [treeKey] - Group by this key
     */
    stations(treeKey: string, callback: (err: string, data: {}) => void): void;
    stations(callback: (err: string, data: {}) => void): void;

    /** List disruptions */
    storingen(params: {}, callback: (err: string, data: {}) => void): void;
}

declare namespace nsApi {
    interface Configuration {
        username: string;
        password: string;
        timeout?: number | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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