A very small command line interface to substack/node-trumpet.
npm install -g trump
# pipe things into itcurl | trump '#date-info'# read from filestrump 'a' index.html# get the first matching elementtrump -f 'a' index.html
Get the first element that matches a selector from the input.
I wanted to be able to do what the curl example above did in a script, and decided to use trumpet to do it.
I know, I know.