Skip to content

Format code to std out #513

Answered by ematipico
thomasheartman asked this question in Q&A
Oct 12, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You probably want to use --stdin-file-path. From the documentation:

--stdin-file-path=PATH — A file name with its extension to pass when reading from standard in, e.g. echo ‘let a;’ | biome format —stdin-file-path=file.js”.

By doing so, Biome will print the result to stdout

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@thomasheartman
Comment options

@ematipico
Comment options

@thomasheartman
Comment options

@ematipico
Comment options

Answer selected by thomasheartman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants