usn
Version:
Command line tool and library for working with USN data
12 lines (11 loc) • 365 B
JavaScript
const meow = require('meow');
const getStdin = require('get-stdin');
const {getAction, options} = require('./cli.js');
const {input, flags, showHelp} = meow(options);
(async () => {
const stdin = await getStdin();
const [command] = input;
const action = getAction(command, flags, showHelp);
await action(stdin);
})();