1.1.13 • Published 5 years ago
susyknot-config v1.1.13
susyknot-config
Utility for interacting with susyknot-config.js files
Usage
const SusyknotConfig = require("susyknot-config");
Instantiate default SusyknotConfig object
const newConfig = SusyknotConfig.default();
Instantiate custom SusyknotConfig object
const customConfig = new SusyknotConfig("/susyknotDirPath", "/currentWorkingDirPath", networkObj);
Config.detect()
// find config file & return new SusyknotConfig object with config file settings (cwd)
const susyknotConfig = SusyknotConfig.detect();
// find config file & return new SusyknotConfig object from custom working dir
const susyknotConfig = SusyknotConfig.detect({ workingDirectory: "./some/Path" });
// find & return new SusyknotConfig object from custom named config
const customSusyknotConfig = SusyknotConfig.detect({}, "./customConfig.js");
1.1.13
5 years ago