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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@daiyam/xterm-tab-addon-progress

v0.2.0-beta.25.0

Published

An xterm.js addon providing an interface for ConEmu's progress sequence. See https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC for sequence details.

Readme

@xterm/addon-progress

An xterm.js addon providing an interface for ConEmu's progress sequence. See https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC for sequence details.

Install

npm install --save @xterm/addon-progress

Usage

import { Terminal } from '@daiyam/xterm-tab';
import { ProgressAddon, IProgressState } from '@daiyam/xterm-tab-addon-progress';

const terminal = new Terminal();
const progressAddon = new ProgressAddon();
terminal.loadAddon(progressAddon);
progressAddon.onChange({state, value}: IProgressState) => {
  // state: 0-4 integer (see below for meaning)
  // value: 0-100 integer (percent value)
  
  // do your visualisation based on state/value here
  ...
});

See the full API for more advanced usage.

Sequence

The sequence to set progress information has the following format:

ESC ] 9 ; 4 ; <state> ; <progress value> BEL

where state is a decimal number in 0 to 4 and progress value is a decimal number in 0 to 100. The states have the following meaning:

  • 0: Remove any progress indication. Also resets progress value to 0. A given progress value will be ignored.
  • 1: Normal state to set a progress value. The value should be in 0..100, greater values are clamped to 100. If the value is omitted, it will be set to 0.
  • 2: Error state with an optional progress value. An omitted value will be set to 0, which has a special meaning using the last active value.
  • 3: Actual progress is "indeterminate", any progress value will be ignored. Meant to be used to indicate a running task without progress information (e.g. by a spinner). A previously set progress value by any other state sequence will be left untouched.
  • 4: Pause or warning state with an optional progress value. An omitted value will be set to 0, which has a special meaning using the last active value.

The addon resolves most of those semantic nuances and will provide these ready-to-go values:

  • For the remove state (0) any progress value wont be parsed, thus is even allowed to contain garbage. It will always emit {state: 0, value: 0}.
  • For the set state (1) an omitted value will be set to 0 emitting {state: 1, value: 0}. If a value was given, it must be decimal digits only, any characters outside will mark the whole sequence as faulty (no sloppy integer parsing). The value will be clamped to max 100 giving {state: 1, value: parsedAndClampedValue}.
  • For the error and pause state (2 & 4) an omitted or zero value will emit {state: 2|4, value: lastValue}. If a value was given, it must be decimal digits only, any characters outside will mark the whole sequence as faulty (no sloppy integer parsing). The value will be clamped to max 100 giving {state: 2|4, value: parsedAndClampedValue}.
  • For the indeterminate state (3) a value notion will be ignored. It still emits the value as {state: 3, value: lastValue}. Keep in mind not use that value while that state is active, as a task might have entered that state without a proper reset at the beginning.