realtime-data-cli-tool
Version:
A real-time data dashboard CLI tool built with Ink, React, and TypeScript that displays live ISS location, weather, Bitcoin prices, random facts, and inspirational quotes
25 lines (22 loc) • 446 B
JavaScript
import React from 'react';
import { render } from 'ink';
import meow from 'meow';
import App from './app.js';
const cli = meow(`
Usage
$ my-ink-cli
Options
--name Your name
Examples
$ my-ink-cli --name=Jane
Real-time Dashboard for Jane
`, {
importMeta: import.meta,
flags: {
name: {
type: 'string',
},
},
});
render(React.createElement(App, { name: cli.flags.name }));