# @bookingsuedtirol/mss-nodejs

> MSS API wrapper for Node.js projects

Latest version **0.60.0** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bookingsuedtirol/mss-nodejs
pnpm add @bookingsuedtirol/mss-nodejs
yarn add @bookingsuedtirol/mss-nodejs
bun add @bookingsuedtirol/mss-nodejs
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.60.0 |
| Published | 2026-10-15 |
| First published | 2023-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=22.0.0 |
| Dependencies | 4 |
| Unpacked size | 207 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Spiess |
| Maintainers | tomone, davidspiess |
| Keywords | node-js, api-wrapper |

## Links

- npm: https://www.npmjs.com/package/@bookingsuedtirol/mss-nodejs
- Repository: https://github.com/bookingsuedtirol/mss-nodejs
- Homepage: https://github.com/bookingsuedtirol/mss-nodejs#readme
- Issues: https://github.com/bookingsuedtirol/mss-nodejs/issues
- npm.io page: https://npm.io/package/@bookingsuedtirol/mss-nodejs

## Dependencies (4)

- [jsonix](https://npm.io/package/jsonix.md) ^3.0.0
- [wretch](https://npm.io/package/wretch.md) ^3.0.9
- [xmldom](https://npm.io/package/xmldom.md) npm:@xmldom/xmldom@^0.9.12
- [sanitize-html](https://npm.io/package/sanitize-html.md) ^2.18.0

## Recent versions

- 0.60.0 (latest) — 2026-10-15
- 0.59.0 — 2026-09-09
- 0.58.0 — 2026-06-23
- 0.57.0 — 2026-05-18
- 0.56.0 — 2026-04-29
- 0.55.0 — 2026-04-14
- 0.54.0 — 2026-03-18
- 0.53.0 — 2026-03-18
- 0.52.0 — 2025-11-04
- 0.51.0 — 2025-09-09
- 0.50.0 — 2025-07-24
- 0.49.0 — 2025-05-20
- 0.48.0 — 2025-03-07
- 0.47.0 — 2025-01-28
- 0.46.0 — 2025-01-28
- … 22 more at https://npm.io/package/@bookingsuedtirol/mss-nodejs/versions

## README

# mss-nodejs

[![npm version](https://img.shields.io/npm/v/@bookingsuedtirol/mss-nodejs.svg?style=flat)](https://www.npmjs.com/package/@bookingsuedtirol/mss-nodejs)

MSS API v2.0 wrapper for Node.js projects.

## Available services

- [x] getHotelList
- [x] getSpecialList
- [x] getRoomList
- [x] getPriceList
- [x] getRoomAvailability
- [x] getHotelPictures
- [x] getHotelPictureGroups
- [ ] prepareBooking
- [ ] getBooking
- [ ] createInquiry
- [ ] getUserSources

## Runnable example

`npm run dev`

## Example

```js
import { Client, Request, MSSError } from "@bookingsuedtirol/mss-nodejs";

const client = new Client({
  user: "username",
  password: "password",
  source: "source",
});

const res = await client.request((req) => {
  req.header.method = "getHotelList";
  req.request.search.id = ["11230"];
  req.request.options = {
    hotel_details:
      Request.HotelDetails.BasicInfo |
      Request.HotelDetails.PaymentOptionsForOnlineBooking,
  };
  return req;
});

const hotel = res.result.hotel[0];
console.log(hotel.name); // => "Hotel Lichtenstern"
console.log(hotel.stars); // => 3
```

## Error handling

If MSS returns an error response or the request times out, the promise is rejected with a MSSError:

```js
try {
  const res = await client.request((req) => {
    // …
  });
  // do something with res
} catch (err) {
  if (err instanceof MSSError) {
    // handle the error
    console.error(err);
    return;
  }

  // handle generic errors
  throw error;
}
```

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