1.0.0-alpha.33 • Published 4 years ago
@youbox/config v1.0.0-alpha.33
@youbox/config
Utility for interacting with truffle-config.js files
Usage
const TruffleConfig = require("@youbox/config");
Instantiate default TruffleConfig object
const newConfig = TruffleConfig.default();
Instantiate custom TruffleConfig object
const customConfig = new TruffleConfig("/truffleDirPath", "/currentWorkingDirPath", networkObj);
Config.detect()
// find config file & return new TruffleConfig object with config file settings (cwd)
const truffleConfig = TruffleConfig.detect();
// find config file & return new TruffleConfig object from custom working dir
const truffleConfig = TruffleConfig.detect({ workingDirectory: "./some/Path" });
// find & return new TruffleConfig object from custom named config
const customTruffleConfig = TruffleConfig.detect({}, "./customConfig.js");
1.0.0-alpha.33
4 years ago
1.0.0-alpha.12
4 years ago
1.0.0-alpha.11
4 years ago
1.0.0-alpha.10
4 years ago
1.0.0-alpha.9
4 years ago
1.0.0-alpha.7
4 years ago
1.0.0-alpha.8
4 years ago
1.0.0-alpha.6
4 years ago