Skip to content

Allow stdin to be a file path - #614

Merged
sindresorhus merged 2 commits into
mainfrom
stdin-file-path
Dec 17, 2023
Merged

sindresorhus merged 2 commits into
mainfrom
stdin-file-path

Conversation

@ehmicky

@ehmicky ehmicky commented Dec 16, 2023 •

Copy link
Copy Markdown
Collaborator

Part of #592. See also #610.

This allows the stdin option to be a file path string. I will send another PR for stdout/stderr.

It works with both Unix and Windows file paths.
File paths can be either absolute or relative. It requires relative file paths to start with ., which prevents any ambiguity with the already existing string values of the stdin option.

Loading
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 this pull request may close these issues.

2 participants