# ovh-es

> ES7 Node.js wrapper for the OVH APIs

Latest version **1.7.0** (published 2023-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install ovh-es
pnpm add ovh-es
yarn add ovh-es
bun add ovh-es
```

## 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.7.0 |
| Published | 2023-10-05 |
| First published | 2017-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Francois Leurent |
| Maintainers | 131, frodon |
| Keywords | swift, ovh, API, REST, api.ovh.com |

## Links

- npm: https://www.npmjs.com/package/ovh-es
- Repository: https://github.com/131/node-ovh
- Homepage: http://github.com/131/node-ovh
- Issues: https://github.com/131/node-ovh/issues
- npm.io page: https://npm.io/package/ovh-es

## Dependencies (3)

- [mout](https://npm.io/package/mout.md) ^1.2.4
- [nyks](https://npm.io/package/nyks.md) ^6.9.3
- [debug](https://npm.io/package/debug.md) ^2.3.2

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.7.0 (latest) — 2023-10-05
- 1.6.2 — 2018-09-10
- 1.6.1 — 2018-09-07
- 1.6.0 — 2018-09-06
- 1.5.0 — 2018-09-04
- 1.4.2 — 2018-09-04
- 1.3.0 — 2018-08-29
- 1.2.2 — 2018-08-29
- 1.2.1 — 2017-10-26
- 1.2.0 — 2017-10-25
- 1.1.1 — 2017-10-22
- 1.0.2 — 2017-10-15
- 1.0.1 — 2017-10-15

## README

This is an es7 async/await openstack swift client API.


[![NPM Version](https://img.shields.io/npm/v/ovh-es.svg?style=flat)](https://www.npmjs.org/package/ovh-es)
[![Build Status](https://img.shields.io/travis/131/node-ovh.svg?style=flat)](http://travis-ci.org/131/node-ovh)
[![Coverage Status](https://img.shields.io/coveralls/131/node-ovh.svg?style=flat)](https://coveralls.io/r/131/node-ovh?branch=master)



```js
// Create your first application tokens here: https://api.ovh.com/createToken/?GET=/me
var ovh = require('ovh-es')({
  appKey: process.env.APP_KEY,
  appSecret: process.env.APP_SECRET,
  consumerKey: process.env.CONSUMER_KEY
});

var me = await ovh.request('GET', '/me');
console.log(err || 'Welcome ' + me.firstname);
```


# Installation

```bash
$ npm install ovh-es
```


# Services (wrapper)
## object-store
```
"use strict";

const fs = require('fs');
const Context = require('ovh-es/context');
const storage = require('ovh-es/services/object-store');
const pipe = require('nyks/stream/pipe');
const config = require('./credentials');


class foo {
  async run(){
    // init token
    var ctx = await Context.build(config);

    var files = await storage.toggleMode(ctx, 'mediaprivate', ".r:*,.rlistings");
    var headers = await storage.showContainer(ctx, 'mediaprivate');


    var remote = await storage.putFile(ctx, 'boucs.jpg', 'mediaprivate/bouc.jpg');
    var local = fs.createWriteStream('tmp.jpg');

    var remote = storage.download(ctx, 'mediaprivate/bouc.jpg');

    await pipe(remote, local);

    var remote = await storage.deleteFile(ctx, 'mediaprivate/bouc.jpg');

    var files = await storage.getFileList(ctx, 'mediaprivate');
    console.log({files, remote});
  }
}


module.exports = foo;
```

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