# powerp.js

> PowERP Javascript Client

Latest version **0.1.1** (published 2019-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install powerp.js
pnpm add powerp.js
yarn add powerp.js
bun add powerp.js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-06-20 |
| First published | 2019-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | GISCE-TI, S.L. |
| Maintainers | ecarreras |
| Keywords | PowERP, javascript, api |

## Links

- npm: https://www.npmjs.com/package/powerp.js
- Repository: https://github.com/gisce/powerp.js
- Homepage: https://github.com/gisce/powerp.js#readme
- Issues: https://github.com/gisce/powerp.js/issues
- npm.io page: https://npm.io/package/powerp.js

## Dependencies (2)

- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^3.0.0
- [@msgpack/msgpack](https://npm.io/package/@msgpack/msgpack.md) ^1.2.1

## Recent versions

- 0.1.1 (latest) — 2019-06-20
- 0.1.0 — 2019-06-04

## README

# PowERP.js

Javascript client for PowERP and MessagePack protocol.


## Example

```javascript
import Client from 'powerp';


const c = new Client('http://localhost:8068', 'test', 'admin', 'admin');
c.login().then(() => {
    const model = c.model('res.partner');
    model.search([['name', 'ilike', 'asus']]).then((ids) => {
        model.read(ids, ['name', 'vat']).then((results) => {
            results.map((result) => {
                console.log(`Partner ${result.name} vat: ${result.vat}`);
            });
        });
    });
});
```

## Running tests

```shell
$ npm install
$ npm test
```

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