mono-drive

0.0.2 • Public • Published

mono-drive

Mono module to manage storage (fileSystem, S3)

npm version Travis Coverage license

Installation

npm install --save mono-drive

Then, in your configuration file of your Mono application (example: conf/application.js):

module.exports = {
  mono: {
    modules: ['mono-drive']
  }
}

Configuration

mono-drive will use the mono.drive property of your configuration (example: conf/development.js):

module.exports = {
  mono: {
    drive: {
      fs: {
        root: '' //path of the root directory
      },
      s3: {
        key: // Access key id `accessKeyId`
        secret: // secret access key `secretAccessKey`
        region: // region
      }
    }
  }
}

Usage

In your src/ files of your Mono project, you can access exposed methods like this:

const { get, put, del } = require('mono-drive')

Development / Contribution

See the contribution guidelines of this project.

License

MIT © gaetansenn

Readme

Keywords

Package Sidebar

Install

npm i mono-drive

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.69 kB

Total Files

6

Last publish

Collaborators

  • benjamincanac