This package has been deprecated

Author message:

WARNING: This package has been renamed to @truffle/config.

truffle-config

1.1.20 • Public • Published

truffle-config

Utility for interacting with truffle-config.js files

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i truffle-config

Weekly Downloads

493

Version

1.1.20

License

MIT

Unpacked Size

16.3 kB

Total Files

6

Last publish

Collaborators

  • rizedr
  • jeff.smale
  • kevinbluer
  • davidmurdoch
  • fainashalts
  • cds-amal
  • tcoulter