JSLab adds npm package install, type support, and quick fixes for missing imports
JSLab, a JavaScript and TypeScript scratchpad for macOS, lets users open a package sheet with ⌘I to search the npm registry and add packages by name or exact version. Installed packages are shared across all tabs, so an import added in one tab works in others without a restart, and the editor reads their types for autocomplete and type-checking. When an import is missing, the editor flags it with a quick fix to install the package, and browser tabs show an install button that reruns the code once installation finishes. The sheet also tracks installed and latest versions with update and removal options, while install scripts are blocked by default and JSLab uses its own .npmrc file for registry settings. JSLab is set 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