code: function arrayify(params, opts, flags) {
    // Escape =s in parameters
    var array = params.map(JSON.stringify);
    var collapsedOpts = collapse(opts);
    Object.keys(collapsedOpts).forEach(function(key) {
      array = array.concat([ "-" + key, JSON.stringify(collapsedOpts[key]) ]);
    });
    var collapsedFlags = collapse(flags);
    Object.keys(collapsedFlags).forEach(function(key) {
      array.push("-" + key);
    });
    return array;
  }
docs: Convert parameters and named options to an array of strings for use in passing to methods like process.spawn().
  @param {Object} opts - Named options object.
  @param {string[]} params - Array of parameter strings.
  @returns {string[]} - Array of string representations of command-line options and params.