awslabs / llrt

LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Apache License 2.0
8.05k stars 355 forks source link

readfile API does not return a string when encoding utf-8 is passed #258

Closed fredbonin closed 6 months ago

fredbonin commented 6 months ago

As seen here, if encoding is passed a string should be returned instead of a Buffer

https://nodejs.org/api/fs.html#filehandlereadfileoptions