To load directories that contain configuration files in the options object provide locations property that is an array of directories than contain your configurations.

var gofigure =require("gofigure");

var loader = gofigure({locations :[__dirname+"/configs"]});

loader.load(function(err, config){

var PORT = config.port, HOST = config.host;

});

The order of the locations matter as it defines a precedence for files. For example suppose you have a directory of default configuration files, and on production you want to override those configuration with environment specific configurations with out changing your module or source controlled files.