1.0.0 • Published 21 days ago

node-ovh-storage v1.0.0

Weekly downloads
154
License
ISC
Repository
github
Last release
21 days ago

node-ovh-storage

A simple Node.js library to connect to the Object Storage OVH service.

Install via npm

npm install node-ovh-storage

API Usage

var OVHStorage = require('node-ovh-storage');

var config = {
  authURL:  'https://auth.cloud.ovh.net/v3',
  username: 'username',
  password: 'password',
  tenantId: 'tenantId',
  region:   'GRA'
};

const storage = new OVHStorage(config);

// init token
storage.getToken((err) => {

  // create new container
  storage.createContainer('Container-1', () => {

    // put file
    storage.putFile('./tmp/doc.pdf', '/Container-1/doc.pdf', (err, res) => {

      // list files in container
      storage.getFileList('/Container-1', (err, files) => {

        // read file
        storage.getFile('/Container-1/doc.pdf', (err, file) => {
          
        });
      });
    });
  });
});
1.0.0

21 days ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.9

5 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago