code: function bufferToScript(buffer, enc) {
      if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) { // UTF8 BOM sequence, see http://en.wikipedia.org/wiki/Byte_order_mark
          buffer = buffer.slice(3, buffer.length - 3);
      }
  
      var script = buffer.toString(enc);
  
      script = script.replace(/^\s*#!/g, "//$&"); // UNIX-style shebang, see http://en.wikipedia.org/wiki/Shebang_(Unix)
      return script;
  }
docs: Convert the specified buffer to a script string using the specified encoding, ignoring BOM sequence and commenting out UNIX-style shebang line (if present).