1.0.11 • Published 2 years ago

@wecrea/cloud-storage v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Cloud-Storage Library

This library helps your NodeJS project to communicate with Openstack at OVH, Scaleway or another S3 cloud storage !

Installation

Add the lib to your package.json file :

npm instal --save wecrea/cloud-storage

Usage

SUMMARY

Connection

const { CloudStorage } = await import("cloud-storage");

try {
  const Storage = new CloudStorage({
    type: "ovh",
    host: "https://auth.cloud.ovh.net/v3/auth",
    access: "user-abc123def456",
    secret: "RaNdOmSeCr3tP4SsPHr4s3",
    project: "RaNdOmPr0j3CtId",
    region: "ABC",
    localpath: "/your/directory",
  });
  const OVHStorage = await Storage.connect();
  // Perfect, you are connected and you can use OVHStorage object
} catch (e) {
  // your code here...
}
1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago