# node-savas

> a node.js integration to communicate with the savas http-service

Latest version **3.3.0** (published 2019-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-savas
pnpm add node-savas
yarn add node-savas
bun add node-savas
```

## 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 | 3.3.0 |
| Published | 2019-05-16 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | tyurderi@yahoo.de |
| Maintainers | tyurderi |
| Keywords | savas, node, js, http-service, http, service |

## Links

- npm: https://www.npmjs.com/package/node-savas
- Repository: https://github.com/yurderi/savas
- Homepage: https://github.com/yurderi/savas#readme
- Issues: https://github.com/yurderi/savas/issues
- npm.io page: https://npm.io/package/node-savas

## Dependencies (8)

- [ora](https://npm.io/package/ora.md) ^3.4.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [boxen](https://npm.io/package/boxen.md) ^3.2.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [configstore](https://npm.io/package/configstore.md) ^4.0.0
- [extract-zip](https://npm.io/package/extract-zip.md) ^1.6.7

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.3.0 (latest) — 2019-05-16
- 3.2.3 — 2019-05-16
- 3.2.2 — 2019-05-16
- 3.2.1 — 2019-05-16
- 3.2.0 — 2019-05-16
- 3.1.0 — 2019-05-13
- 3.0.0 — 2019-05-13
- 2.0.1 — 2018-10-19
- 2.0.0 — 2018-10-19
- 1.0.4 — 2018-04-20
- 1.0.3 — 2018-04-20
- 1.0.2 — 2018-04-19
- 1.0.1 — 2018-04-19
- 1.0.0 — 2018-04-19

## README

# node-savas

A simple wrapper to communicate with savas

### Installation
```
yarn add node-savas
```

### Usage
```javascript
const savas = require('node-savas')

let app = savas.instance({
    // The host, with protocol and no ending slash
    host: 'http://savas.test',
    // The label of your application
    id: 'development-tool',
    // The release channel (available values based on your configuration)
    channel: 'production',
    // The platform (available values based on your configuration)
    platform: 'windows',
    // The current installed version (can be null to receive the latest version)
    version: '0.0.0'
})

app.getUpdate()
    .then(update => {

        app.download(update, {
            destination: __dirname + '/picture.jpg',

            progress ({ total, current, percentage }) {
                console.log('%d/%d (%d%%)', current, total, percentage)
            },
            resolve ({ filename }) {
                console.log('Downloaded update file: %s', filename)
            },
            reject (error) {
                console.log('There was an error while downloading the update')
            }
        })

    })
    .catch(error => {
        if (error) {
            console.log('There was an error while checking for updates')
        } else {
            console.log('No update available')
        }
    })
```

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