4 views
25 Jan 2026
Create a CLI that reads two numbers and an operator and prints result....
6 views
25 Jan 2026
Catch an error and print message plus stack first line....
5 views
25 Jan 2026
Print green text using ANSI codes only when stdout is TTY....
5 views
25 Jan 2026
Print a simple progress bar from 0 to 100 in steps....
5 views
25 Jan 2026
Run 'node -v' using child_process and print the version....
6 views
25 Jan 2026
Read all stdin, split into lines, and print count....
3 views
25 Jan 2026
Pick config path: MEETCODE_CONFIG env else ./meetcode.config.json....
5 views
25 Jan 2026
If --debug is present, print extra information....
3 views
25 Jan 2026
Handle Ctrl+C (SIGINT) and print Bye meetcode then exit....
4 views
25 Jan 2026
Run heavy work in worker_threads and return result to main thread....
4 views
25 Jan 2026
Print how many CPU cores exist and a note about clustering....
3 views
25 Jan 2026
Ask user name using readline and greet them with meetcode....
5 views
25 Jan 2026
If --help is passed, print usage text for a CLI....
5 views
25 Jan 2026
Print warnings to stderr and normal output to stdout....
3 views
25 Jan 2026
Show a simple spinner for 1 second then print DONE....
3 views
25 Jan 2026
Support subcommands: init and run, print what was chosen....
4 views
25 Jan 2026
Read a file path from args and print first 100 chars....
5 views
25 Jan 2026
If input string is empty, print FAIL and set exitCode=2....
6 views
25 Jan 2026
If DEBUG=1, print extra logs around a task....
3 views
25 Jan 2026
If --json flag is present, print output as JSON instead of text....