npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@vscode-utility/terminal-browserify

v1.0.5

Published

The `terminal` module compatible for VS Code Web Extensions

Downloads

43

Readme

CI GitHub license

npm version Gitpod Ready-to-Code install size npm bundle size npm downloads Known Vulnerabilities

@vscode-utility/terminal-browserify

Easily build VS Code extensions that work seamlessly on both desktop and web (https://vscode.dev, https://github.dev). This package provides a unified API for terminal management and file system operations, allowing you to create, control, and customize terminals, as well as access files in both local and remote environments. Simplify cross-platform extension development with utilities designed for compatibility, flexibility, and ease of use.

If you find this package useful for your projects, please consider supporting me by Github, Patreon, KO-FI or Paypal. It's a great way to help me maintain and improve this tool in the future. Your support is truly appreciated!

Github Patreon KO-FI Paypal

Installation

npm

npm install @vscode-utility/terminal-browserify

yarn

yarn add @vscode-utility/terminal-browserify

pnpm

pnpm add @vscode-utility/terminal-browserify

Usage

import { TerminalApi, ThemeService } from '@vscode-utility/terminal-browserify';

// --- TerminalApi usage ---
// Get the singleton instance of TerminalApi
const terminalApi = TerminalApi.instance();

// Create a new terminal
const themeService = new ThemeService();
const terminalItem = { name: 'My Terminal', commands: ['echo Hello World'] };
const terminal = terminalApi.createTerminal(themeService, terminalItem, { kind: 'standalone' }, false);

// Get absolute path for cwd
const cwdPath = await terminalApi.getCwdPath('./my-folder');

// Check if a terminal exists by name
const exists = terminalApi.isTerminalExist('My Terminal');

// Get the command join operator for the current OS
const joinOp = terminalApi.getJoinOperator();

// Get the list of current terminals
const terminals = terminalApi.getCurrentTerminals();

// Focus the terminal with focus=true in the list
terminalApi.focusTerminal([{ name: 'My Terminal', focus: true }]);

// Kill all terminals (and kill process if needed)
await terminalApi.killAllTerminalAsync(true);

// --- ThemeService usage ---
// Create a ThemeService instance with a specific theme
const themeService = new ThemeService('chaos'); // or 'default', 'inkwell', etc.

// Get a ThemeColor for a terminal
const color = themeService.getColor(undefined, 'groupName', 'terminalName');

// Get a ThemeIcon for a terminal
const icon = themeService.getIcon(undefined, 'groupName', 'terminalName');

// Get a session icon by session name (static method)
const sessionIcon = ThemeService.getSessionIcon('my-session');

Feedback

If you discover a bug, or have a suggestion for a feature request, please submit an issue.

LICENSE

This extension is licensed under the MIT License