JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q40642F
  • License SEE LICENSE IN https://github.com/hapinessjs/mingo-module/blob/master/LICENSE.md

Manage files using minio as file storage and mongodb for metadata

Package Exports

  • @hapiness/mingo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hapiness/mingo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hapiness

mingo module

This module helps you manage files with minio as file storage and mongodb for metadata.

It uses @hapiness/minio module and @hapiness/mongodb module.

Table of contents

Back to top

Usage

In your service:

@Injectable()
class MyService {

    constructor(private _mingoService) {}

    uploadFile(...) {
        this._mingoService.fromBucket('my_bucket').createFromStream(input, filename, 'image/jpeg', metadata);
    }
}

Change History

  • v1.1.1 (2018-02-13)
    • Fix returned object, now doesn't include mongoose metadata
  • v1.1.0 (2018-01-30)
    • Update mingo model
    • Minor code updates
  • v1.0.0 (2018-01-18)
    • First release

Back to top

Maintainers

tadaweb
Julien Fauville Antoine Gomez Sébastien Ritz Nicolas Jessel Florent Bennani

Back to top

License

Copyright (c) 2017 Hapiness Licensed under the MIT license.

Back to top