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
7.76k stars 342 forks source link

Implement encoding support for filehandle.readFile #261

Closed calavera closed 3 months ago

calavera commented 3 months ago

Issue # (if available)

Fixes #258

Description of changes

Encode the buffer produced by filehandle.readFile if the caller provides an encoding as a string.

Checklist

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.