Receive stdin, output a list of URLs.
-t --type : plaintext | html
Indicate whether STDIN is HTML or Plaintext.
-d --delimit : string
Provide a string (1+ characters) to use as a delimiter. Be mindful not to use valid URL characters otherwise parsing the list will be difficult.
echo "check out https://deno.land it's cool!" | deno run mod.ts
Expected output:
https://deno.land
Copy some links/content from a website, then:
xclip -o -t text/html -selection clipboard | deno run mod.ts --type html