1.2.7 • Published 3 years ago

@js-util/config-loader v1.2.7

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

config-loader

Quick and simple config loading, with sane defaults to get an application started

npm install

npm install --save @js-util/config-loader

Example usage

const ConfigLoader = ("@js-util/config-loader")

//
// Load the various config files (if found),
// along with the various default value fallbacks
//
const config = new ConfigLoader({
	fileList: ["./config.json", "./config.hjson"],
	default: require("./config.default.js"),
	configDirList: ["./config/"],
});

//
// Fetch some config values
//
config.fetchValue("hello.world")
1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.2.1

3 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.1.2

6 years ago

1.0.8

6 years ago

1.0.7

6 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