Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to write base64 strings directly to file on platform package #4290

Open
danielo515 opened this issue Jan 18, 2025 · 0 comments
Open
Labels
enhancement New feature or request platform

Comments

@danielo515
Copy link
Contributor

danielo515 commented Jan 18, 2025

What is the problem this feature would solve?

I want a way to do something like this using effect platform

await fs.writeFile(filePath, stringData, 'base64');

What is the feature you are proposing to solve the problem?

Probably an extra method called writeStringBase64, or add the encoding option to the existing writeStringFile method

What alternatives have you considered?

Currently I'm wrapping the write file from node using effect, but that is platform specific (but it seems to work both on node and bun)

Discord thread

https://discord.com/channels/795981131316985866/1098177242598756412/1328352928972537956

@danielo515 danielo515 added the enhancement New feature or request label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform
Projects
None yet
Development

No branches or pull requests

2 participants