@hekonsek/scriptz
v0.10.0
Published
CLI utilities for recording terminal sessions
Downloads
106
Readme
Scriptz: record your terminal sessions with script
This project provides a Node.js + TypeScript CLI for working with terminal session recordings created by the Unix script command.
How it works
- Recordings are stored in
~/.cache/script. recordstarts a newscriptsession and writes output to a timestamped.logfile.cleanremoves recordings older than 15 minutes so only recent session data stays on disk.
Commands
scriptz versionprints the package version.scriptz recordstarts a new recording session.scriptz promptprints a BashPS1assignment with a random terminal title.scriptz cleanremoves recordings older than 15 minutes.scriptz clean --quietremoves old recordings without output.
Apply the generated prompt to the current shell:
eval "$(scriptz prompt)"Local development
Install the published CLI:
npm install -g @hekonsek/scriptzInstall dependencies:
npm installRun tests:
npm testRun the CLI during development:
npm run dev -- versionBuild distributable files:
npm run build