Socket
Socket
Sign inDemoInstall

fastify-ibm-cos

Package Overview
Dependencies
40
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fastify-ibm-cos

A fastify plugin to connect to an IBM COS instance via the IBM COS SDK


Version published
Weekly downloads
3
Maintainers
1
Install size
15.3 MB
Created
Weekly downloads
 

Readme

Source

Fastify IBM COS Plugin using the IBM COS SDK

NPM

Installation

npm i fastify-ibm-cos -s

Usage

// ...Other Plugins
fastify.register(
  require("fastify-ibm-cos"),
  {
    endpoint: "s3.eu.cloud-object-storage.appdomain.cloud",
    apiKeyId: "api_key_id",
    credentials: {
      accessKeyId: "access_key_id",
      secretAccessKey: "secret_access_key"
    },
    ibmAuthEndpoint: "https://iam.cloud.ibm.com/identity/token",
    serviceInstanceId: "service_instance_id"
  },
  err => {
    if (err) throw err;
  }
);

fastify.get("/", (request, reply) => {
  console.log(fastify.cos); // IBM COS instance here
});

Options

The options are passed as-is to the underlying ibm-cos-sdk instance and as such one should consult the corresponding docs for what variables he/she should pass.

Author

Alex Papageorgiou

License

Licensed under GPLv3.

Keywords

FAQs

Last updated on 29 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc