Usage Path varies by platform. const yarnConfig = require('{%= name %}'); console.log(yarnConfig()); //=> '/Users/jonschlinkert/.config/yarn'