# sauto-api-nodejs

> Node.js (Typescript) promise based wrapper over Sauto XML-RPC API. All methods are implemented with the same name as the original XML-RPC API provides.

Latest version **1.0.0** (published 2021-11-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install sauto-api-nodejs
pnpm add sauto-api-nodejs
yarn add sauto-api-nodejs
bun add sauto-api-nodejs
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-22 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 749.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ladislav Miklík |
| Maintainers | trueslav.dev |

## Links

- npm: https://www.npmjs.com/package/sauto-api-nodejs
- Repository: https://github.com/TrueSlavDev/sauto-api-nodejs
- Homepage: https://github.com/TrueSlavDev/sauto-api-nodejs#readme
- Issues: https://github.com/TrueSlavDev/sauto-api-nodejs/issues
- npm.io page: https://npm.io/package/sauto-api-nodejs

## Dependencies (2)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [xmlrpc](https://npm.io/package/xmlrpc.md) ^1.3.2

## Recent versions

- 1.0.0 (latest) — 2021-11-22

## README

# sauto-api-nodejs

Node.js (Typescript) promise based wrapper over Sauto XML-RPC API. All methods are implemented with the same name as the original XML-RPC API provides.

## How to install

```
npm install sauto-api-nodejs
```

## Setup

```
import SautoApi from 'sauto-api-nodejs';

const login = 'import',
    password = 'test',
    config = {
        host: "import.sauto.cz",
        port: 80,
        path: "/RPC2"
    },
    swKey = 'testkey-571769';

const sautoApi = new SautoApi(config, login, password, swKey);
```

## Usage

```
sautoApi
  .login()
  .then(() => {
    return sautoApi.listOfCars();
  })
  .then(() => {
    return sautoApi.logout();
  });
```

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