1.2.7 • Published 2 years ago

@js-util/config-loader v1.2.7

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

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.2.1

2 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.2

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago