0.2.2 • Published 3 years ago
@terra-money/houston-config v0.2.2
@terra-money/houston-config
Utility for interacting with houston-config.js files
Usage
import HoustonConfig from "@terra-money/houston-config";
Instantiate default HoustonConfig object
const newConfig = HoustonConfig.default();
Instantiate custom HoustonConfig object
const customConfig = new HoustonConfig(
"/houstonDirPath",
"/currentWorkingDirPath",
networkObj
);
Config.detect()
// find config file & return new HoustonConfig object with config file settings (cwd)
const HoustonConfig = HoustonConfig.detect();
// find config file & return new HoustonConfig object from custom working dir
const HoustonConfig = HoustonConfig.detect({ workingDirectory: "./some/Path" });
// find & return new HoustonConfig object from custom named config
const customHoustonConfig = HoustonConfig.detect({}, "./customConfig.js");
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
0.2.1
3 years ago
0.2.2
3 years ago
0.2.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.0
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago