3.0.0 • Published 9 months ago

@joshuaavalon/fastify-plugin-storage v3.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@joshuaavalon/fastify-plugin-storage

Getting Started

npm i @joshuaavalon/fastify-plugin-storage

Usage

import storagePlugin from "@joshuaavalon/fastify-plugin-storage";
import type { Storage } from "@joshuaavalon/fastify-plugin-storage";

declare module "@joshuaavalon/fastify-plugin-storage" {
  interface FastifyStorage {
    name: Storage;
  }
}

await fastify.register(storagePlugin, {
  storage: {
    name: {
      type: "S3"
    }
  }
});

await fastify.storage.write({ body: buffer, contentType: mime });
3.0.0

9 months ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

2 years ago

1.0.0

2 years ago