Miss any of our Open RFC calls?Watch the recordings here! »

truffle-conflux-config

0.0.2-alpha.0 • Public • Published

truffle-conflux-config

Utility for interacting with truffle-conflux-config.js files

Usage

const TruffleConfig = require("truffle-conflux-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");

Install

npm i truffle-conflux-config

DownloadsWeekly Downloads

5

Version

0.0.2-alpha.0

License

MIT

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • avatar