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

Suggestion: Support /dev/stdin and absolute paths #63

Open
CreativeCactus opened this issue Sep 18, 2021 · 0 comments
Open

Suggestion: Support /dev/stdin and absolute paths #63

CreativeCactus opened this issue Sep 18, 2021 · 0 comments

Comments

@CreativeCactus
Copy link

It would be useful to pipe HTML directly into this tool with something like:

curl $URL | pup 'body' | npx -p html-to-react-components html2react

or

curl $URL | pup 'body' | npx -p html-to-react-components html2react -

It would also be useful to support absolute paths like:

curl $URL | pup 'body' | npx -p html-to-react-components html2react /dev/stdin

or

curl $URL | pup 'body' > /tmp/file.html && npx -p html-to-react-components html2react /tmp/file.html

If there is support for this issue I will try to implement, unless the maintainer already has a method in mind.
I thought there might be some interface considerations since globbing is used.

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

No branches or pull requests

1 participant