Specialist
A library that helps you write tiny, fast and beautiful CLI apps that can automatically check for updates.
Install
npm install specialist
Usage
The following APIs are provided:
import {bin} from 'specialist';
import {color} from 'specialist';
import {exit} from 'specialist';
import {parseArgv} from 'specialist';
import {updater} from 'specialist';
Example
The following is an example basic CLI app build with Specialist:
#!/usr/bin/env node
import {bin, color} from 'specialist';
bin ( 'my-cli', 'My example cli' )
.command ( 'time', 'A command that tells you the time' )
.action ( () => {
console.log ( color.cyan ( new Date ().toString () ) );
})
.run ();
License
MIT © Fabio Spampinato