node-flydrive
is a framework-agnostic package which provides a powerful wrapper to manage Storage in Node.js.
This package is available in the Node Package Repository.
It can easily be installed with npm
or yarn
.
$ npm i --save @slynova/flydrive
# or
$ yarn add @slynova/flydrive
When you require the package in your file, it will give you access to the StorageManager
class.
This class is a facade for the package and should be instantiated with a configuration object.
const StorageManager = require('@slynova/flydrive')
const storage = new StorageManager(config)
There's currently 4 drivers available:
- Local
- Amazon S3 (You need to install
aws-sdk
package to be able to use this driver) - Digital Ocean Spaces (You need to install
aws-sdk
package to be able to use this driver) - FTP (You need to install
jsftp
package to be able to use this driver)
👉 Read the Official Documentation
Any pull requests or discussions are welcome.
Note that every pull request providing new feature or correcting a bug should be created with appropriate unit tests.