0.0.2 • Published 6 years ago

mono-drive v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

0.0.2

6 years ago

0.0.1

6 years ago