~/talk

BUILDING CLI TOOLS WITH NODEJS

Talkat jsday 2020 · 2020-09-10..09-11· [nodejs]
slides:none on file

Claims that a full CLI slide deck runs on core Node only and actually works: a terminal‑in‑terminal that is responsive and watches files, built with process.stdout.write for cursor control, readline for key events, child_process exec/spawn for commands (exec buffers output until completion; spawn streams in real time), fs sync where needed, ANSI color codes, and packaged via npm link/npm publish with a shebang and bin mapping. Argument parsing proves surprisingly hairy (32 lines) and command‑injection is a real risk.

AI-written summary · about

  1. 0:00Start
  2. 2:08Building Ci Tools with Node Js
  3. 4:34Building Cli Tools in Node Js
  4. 6:55Why You Should Be Building Command Line Tools in Node Js
  5. 10:03Where Do You Get Started
  6. 12:50Output
  7. 14:05Stdouts Js
  8. 15:30Colors
  9. 16:47Code Colors Js
  10. 17:10Replace Line
  11. 20:37Question Script
  12. 23:57Shell Commands
  13. 25:57Run Commands Using Exec
  14. 27:42Processing Arguments
  15. 31:03Write to a File
  16. 32:46Watch Files
  17. 34:58Write File
  18. 36:53Add a Bin Parameter
  19. 37:42Npm Link
  20. 41:03Nodepty
  21. 41:47Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.