This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@truffle/config
TypeScript icon, indicating that this package has built-in type declarations

1.3.61 • 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");

/@truffle/config/

    Package Sidebar

    Install

    npm i @truffle/config

    Weekly Downloads

    10,991

    Version

    1.3.61

    License

    MIT

    Unpacked Size

    69.8 kB

    Total Files

    20

    Last publish

    Collaborators

    • rizedr
    • kevinbluer
    • fainashalts
    • cds-amal