How to Use FileSystem.FileSystem for File Operations in Effect Typescript
Hello folks, my script to create an Atom feed:
1. reads an input json file;
2. transforms it into xml;
3. writes it to an output feed.xml file.
In the current version of the script, I use Effect to wrap
I am looking to replacing
Non-platform code looks cleaner to me anyway. But I want to give Platform API a chance. Can anyone help me out?
1. reads an input json file;
2. transforms it into xml;
3. writes it to an output feed.xml file.
In the current version of the script, I use Effect to wrap
node:fs for file read and write as follows:I am looking to replacing
node:fs with FileSystem.FileSystem tag to perform the file read and write, but can't wrap my head around it. Here is my attempt:Non-platform code looks cleaner to me anyway. But I want to give Platform API a chance. Can anyone help me out?
