Modified to allow you to override the --xml option. Just pass in the options object { 'xml': false }