JaxNode Micro Presentations

Build Your Own Tools

Most Common Uses

  • Node is used for building Web, services, Mobile, Desktop and tooling
  • NPM CLI, Web Pack, Bower just a few examples
  • Visual Studio installs Node.js for this reason

NPM CLI

  • Use NPM to publish packages
  • bin property defines command line
  • Commander package for defining commands
var getNextMeeting = require('./lib');
var program = require('commander');

program
	.version(pkg.version)
	.option('-d, --details', 'More details about the meetup')
	.option('-m, --map', 'Google Map to Meetup location')
	.option('-l, --link', 'Open the home page url')
	.option('-a, --address', 'Show the venue address')
	.option('-e, --easteregg', 'Tell you friends to \'jnn -e\' LoL!')
	.parse(process.argv);

if (program.address) {
    console.log('either -d or --details used as argument');
}

Aviation Weather

FAA NOAA Web Services

  • aviationweather.gov has XML Rest based
  • avwx.rest is REST based JSON, YAML tool

No METAR CLI?

  • While their where web services, no CLI
  • NPM has a METAR TAF parsing package
  • Introduction METAR CLI!!!

DEMO

Questions?

Build Your Own Tools

By David Fekke

Build Your Own Tools

This is a short presentation on building your own tools using Node.js

  • 1,071