fastify-storage

An abstraction over storage providers

Usage no npm install needed!

<script type="module">
  import fastifyStorage from 'https://cdn.skypack.dev/fastify-storage';
</script>

README

fastify-storage

An abstraction over storage providers

Node.js CI

Install

$ npm i --save fastify-storage

Usage

fastify.register(require('fastify-storage'))

// ...

const disk = await fastify.storage.disk('local')

await disk.put('bar.txt', 'Foobar')

Methods

Take a look at Flydrive docs.

Options

Take a look at Flydrive docs.

Test

$ npm test

Acknowledgements

This project is kindly sponsored by:

heply

License

Licensed under MIT