textSync(source[, options])


  • source Iterable
  • options <Object>
    • encoding <string> 默认: 'utf-8'
    • limit <number> 要消耗的最大字节数。如果收集的总字节数超过限制,将抛出 ERR_OUT_OF_RANGE 错误
  • 返回:<string>

text() 的同步版本。

🌐 Synchronous version of text().