JSLab Adds a Command-Line Tool to Open Files and Pipe Code into Tabs
JSLab, a JavaScript and TypeScript scratchpad for macOS, now includes a command-line tool called jslab that brings code from the terminal into the app. Users can install it through the Help menu, which links the binary into ~/.local/bin and provides a PATH line if needed. The tool opens files in new tabs or reads code from standard input, and the --run flag executes code immediately upon opening. Piped code runs relative to the terminal's current folder by default, and a local socket handles communication between the CLI and the app. The feature is documented on the JSLab website, and the app is scheduled to launch on November 15.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in