hav
HTML Attribute Values
Install
npm install -g hav
Usage
# Pass a string as stdin and grab its link from the html > hav link href <<< '<a id="link" href="hello/html" rel="greeting">link</a>'hello/html # Get the rel attribute instead of the href attribute > hav link rel <<< '<a id="link" href="hello/html" rel="greeting">link</a>'greeting
# Grab a#wind.href from a web site > curl https://amorris.ca/launch | hav wind hrefhttps://www.windfinder.com/forecast/jericho_beach_park # Open a#wind.href on a mac > curl https://amorris.ca/launch | hav wind href | xargs openhttps://www.windfinder.com/forecast/jericho_beach_park curl https://hav.amorris.ca/ | hav .headercurl https://hav.amorris.ca/ | hav .pre textcurl https://hav.amorris.ca/ | hav ^h2 namecurl https://hav.amorris.ca/ | hav ~why textcurl https://hav.amorris.ca/ | hav ~usage textcurl https://amorris.ca/launch/ | hav ^a hrefcurl https://amorris.ca/launch/ | hav ^a idcurl https://amorris.ca/launch/ | hav music href