{"size": 993, "ext": "js", "max_stars_repo_path": "lib/configs/config.js", "max_stars_repo_name": "yinxiulong/s3uploader-minio", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/configs/config.js", "max_issues_repo_name": "yinxiulong/s3uploader-minio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/configs/config.js", "max_forks_repo_name": "yinxiulong/s3uploader-minio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 43.1739130435, "max_line_length": 127, "alphanum_fraction": 0.7250755287}
'use babel'

export default class Config {
  constructor() {
    // Make it singleton.
    // [JavaScript Design Patterns: The Singleton — SitePoint](https://www.sitepoint.com/javascript-design-patterns-singleton/)
    if (!Config.instance) {
      this.secretKey = atom.config.get('s3uploader-minio.secretKey')
      this.accessKey = atom.config.get('s3uploader-minio.accessKey')
      this.s3BucketName = atom.config.get('s3uploader-minio.s3BucketName')
      this.s3Port = atom.config.get('s3uploader-minio.s3Port')
      this.s3UseSSL = atom.config.get('s3uploader-minio.s3UseSSL')
      this.endPointUrl = atom.config.get('s3uploader-minio.endPointUrl')
      this.s3DirectoryPath = atom.config.get('s3uploader-minio.s3DirectoryPath')
      this.useUuidAsFileName = atom.config.get('s3uploader-minio.useUuidAsFileName')
      this.markdownListingCharacter = atom.config.get('s3uploader-minio.markdownListingCharacter')
      Config.instance = this
    }

    return Config.instance
  }
}
