npx -p typescript tsc --init
Category: Node.js & npm/yarn
npx -p typescript tsc --init
Run a specific package binary in a temporary environment using -p to specify the package
Uses -p to specify which npm package to pull in, then runs its binary. Here it runs TypeScript's compiler init without a global TypeScript install.