0.0.7 • Published 2 years ago

file-readorator v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Intro

This package's aim is mostly toward solving docker secret issues when using Docker Swarm in production.

Install

npm i file-readorator

Usage

class Config {
  @FileReadorator({
    cache: true,
    canChange: false,
    encoding: "utf8",
    transformer(value) {
      return value.toUpperCase();
    },
  })
  DATABASE_HOST!: string;

  @FileReadorator()
  DATABASE_PORT!: string;
}
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago