Writing NDJSON to a File Using `@effect/experimental` and `@effect/platform`

I wanna write Ndjson to a file using the @effect/experimental package and @effect/platform fs module.

AFAIK I need to fs.sink(path) to get a sink, then write to that sink, run it through a Ndjson.packString channel, but tbh I have no idea how to do that. Any help is much appreciated!!
Was this page helpful?