Skip to content

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

@CreativeCactus

Description

@CreativeCactus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions