1.2.7 • Published 12 months ago

@js-util/config-loader v1.2.7

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months 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

12 months ago

1.2.6

12 months ago

1.2.5

12 months ago

1.2.4

12 months ago

1.2.3

12 months ago

1.2.2

12 months ago

1.2.0

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.2.1

1 year ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago