4 ms·
Run it as a service. I send in a URL and maybe TERM type, you send back the rendering complete with escape sequences etc. You might not see the need for this,
by snarfy 8y ago
Run it as a service. I send in a URL and maybe TERM type, you send back the rendering complete with escape sequences etc.
You might not see the need for this, but others will. I could see it being used in some back end workflow.
- tombh 8y agoThat's essentially what https://text.brow.sh https://text.brow.sh is already doing right? Eg; `curl https://text.brow.sh/https://news.ycombinator.com/item?id=17487552 https://text.brow.sh/https://news.ycombinator.com/item?id=17... | grep snarfy`
- snarfy 8y agoIt's close, but it doesn't actually output the escape codes. It would be cool if there were different formats besides text and html. Maybe vt100.brow.sh, ansi.brow.sh, etc. That way when I curl it from a terminal it renders like the actual terminal client. Add terms that commercial use of the site requires an account setup and some pricing info. They can always host it themselves, but like many things, most people would rather pay someone else to do it.
- tombh 8y agoOh! I never thought of sending the escape codes over curl. Great idea, thank you.