It's a UNIX system,
I know this!

Writing UNIX compliant CLI apps in JavaScript

/usr/akts

fsug-tvmneoito.com

It's a UNIX system!

the_scene
the_system
our_system

Goals

  • Use the NodeJS runtime.
  • Write a good CLI app in JavaScript that plays well with the $SHELL.
  • Understand Unix conventions and rules while developing the app.

Conventions

page

Rules

How software should interact with other software using the system.

eg: Unix Pipes
$ ls -l | wc -l

Demo

  1. A whirl wind tour of how JavaScript(NodeJS) and modules work.
  2. Intro to our library.
  3. Simplest implementation.
  4. Handling errors.
  5. Usage messages.
  6. Output streams.
  7. Exit statuses.
  8. Man pages.

Fin / Questions?

  • dotRB - George Brocklehurst's presentation.
  • sysexits - How and the what.
  • 2ality - Dr. Axel Rauschmayer's nodejs CLI write up.
  • code - Github