~/talk

Scratch That Itch Node on the command line for fun and profit

Talkat CascadiaFest 2015 · 2015-07-08..07-10· [nodejs]
name:Potch
links:none on file
slides:none on file

Node scripts hit the CLI using process.argv to parse input, use request + cheerio to fetch and scrape HTML, color output with chalk and measure layout via process.stdout.columns, and publish CLI binaries with npm link and package.json bin. Examples: a flight-status scraper built in ~1–1.5 hours that parses FlightAware pages and draws a progress bar (later switched to FlightXML because scraping violates terms), and A9R, an A11Y abbreviator using a Scrabble wordlist published to npm.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Why command line tools
  3. 5:15Do one thing well
  4. 8:52Build for yourself first
  5. 10:22Flight status demo
  6. 14:29Terminal width and color
  7. 17:26Open source philosophy
  8. 19:00Scraping vs APIs
  9. 22:25A11Y abbreviation tool
  10. 25:44NPM link and deployment
  11. 26:29Finish small, finish fast
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.