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

[Feature request] Support synchronous file reads #42

Open
Whoaa512 opened this issue Sep 17, 2022 · 2 comments
Open

[Feature request] Support synchronous file reads #42

Whoaa512 opened this issue Sep 17, 2022 · 2 comments

Comments

@Whoaa512
Copy link
Contributor

Don't see a reason why this isn't implemented

@sindresorhus
Copy link
Owner

It's not possible as internally it uses a method that is async (not the fs call):

terminalImage.buffer(await fsPromises.readFile(filePath), options);

@sindresorhus
Copy link
Owner

#43 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants