1
0
Fork 0
mirror of https://github.com/nbtca/Prompt.git synced 2026-09-19 23:05:52 +08:00
A poetic and powerful CLI tool by NBTCA – where every command begins with a Prompt.
  • TypeScript 97.8%
  • Shell 1.3%
  • JavaScript 0.9%
Find a file
2026-09-16 15:30:26 +08:00
.github/workflows fix(auth): report what the campus login actually rejected (#51) 2026-09-16 15:25:38 +08:00
assets release: Prompt 1.4.2 (#26) 2026-08-04 12:25:57 +08:00
scripts feat(calendar): serve the feed from cache, fetch once per session (#30) 2026-09-05 14:37:10 +08:00
src fix(auth): report what the campus login actually rejected (#51) 2026-09-16 15:25:38 +08:00
.gitignore feat(schedule): size-adaptive grid — per-column width, two-line cells, single-day fallback 2026-07-18 10:20:33 +08:00
.nvmrc feat: replace inquirer with @clack/prompts for modern TUI (#13) 2026-03-01 16:16:16 +08:00
.prettierignore feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
.prettierrc.json feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
CHANGELOG.md feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
eslint.config.js feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
LICENSE release: Prompt 1.4.2 (#26) 2026-08-04 12:25:57 +08:00
package-lock.json release: Prompt 1.5.10 (#52) 2026-09-16 15:30:26 +08:00
package.json release: Prompt 1.5.10 (#52) 2026-09-16 15:30:26 +08:00
README.md feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
SECURITY.md feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
tsconfig.json feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00
tsconfig.typecheck.json feat: prepare @nbtca/prompt 1.5.0 (#27) 2026-08-12 14:17:54 +08:00

NBTCA Prompt

Terminal client for NBTCA events, documentation, status and personal timetables.

npm version License

Requirements

  • Node.js 20.12 or newer

Install

npm install --global @nbtca/prompt
nbtca

Run a command without installing:

npx @nbtca/prompt --help

Commands

nbtca events [--json]
nbtca docs
nbtca status
nbtca schedule login
nbtca schedule terms
nbtca schedule export --term=2026:3 --week-one=YYYY-MM-DD
nbtca schedule logout

Use --plain for stable output without color. schedule export --one-shot avoids reading or saving a campus session.

Prompt never stores passwords. Persisted sessions contain only a masked account hint and a CookieJar, protected with user-only permissions on POSIX systems. Treat exported calendars and session files as private data. See SECURITY.md.

Development

npm ci
npm run check

check runs formatting, lint, full TypeScript validation, tests, build, package consumer checks and dependency audit.

Project guides and release notes live in the Wiki.

License

MIT