Skip to content

Commit

Permalink
Issue infinitered#573: loadConfig Documentation Parameters Reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
amartincastro committed Oct 1, 2019
1 parent b9d215c commit e2db7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/toolbox-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ module.exports = {
} = toolbox

// use cosmiconfig directly: directory (string) & brand (string)
const myConfig = loadConfig(process.cwd(), brand)
const myConfig = loadConfig(brand, process.cwd())
// or
const myConfig = loadConfig('~/.myconfig/', 'movie')
const myConfig = loadConfig('movie', '~/.myconfig/')

// now access myConfig
info(myConfig.shirtSize)
Expand Down

0 comments on commit e2db7de

Please sign in to comment.