3.0.7 • Published 1 year ago

@mu-ts/configurations v3.0.7

Weekly downloads
83
License
ISC
Repository
github
Last release
1 year ago

Summary

Convenience around configurations.

Usage

Declare Sources

To return more than just your defaults, you will need to define the sources you want considered during a value lookup. The order or declaration, will determine the order they are queried in.

This example prioritizes secrets manager above all, then environment variables then a hard coded set of default values.

Configurations.store
  .secretManager('store-name', process.env.AWS_REGION)
  .environment()
  .defaults({"foo":"bar"})

Use Values

To get raw values, you can use a simple get operation.

const myConfig: any = await Configurations.get('a-value');

To cast as the values are returned.

const myConfig: string = await Configurations.as.string('a-value');
3.0.7

1 year ago

3.0.6

1 year ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.3.0

3 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.4

4 years ago

2.1.2

4 years ago

2.1.3

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago