var conf = etc().argv().env().etc();
var chunk = conf.toJSON();

For example,
var noOfDeployments = chunk.deployments.length;