
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@xterm/addon-fit
Advanced tools
An addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables fitting the terminal's dimensions to a containing element. This addon requires xterm.js v4+.
An addon for xterm.js that enables fitting the terminal's dimensions to a containing element. This addon requires xterm.js v4+.
npm install --save @xterm/addon-fit
import { Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';
const terminal = new Terminal();
const fitAddon = new FitAddon();
terminal.loadAddon(fitAddon);
terminal.open(containerElement);
fitAddon.fit();
See the full API for more advanced usage.
xterm.js is the core library that provides a terminal emulator for the web. While it does not specifically handle fitting the terminal to its container, it is the foundational library that @xterm/addon-fit extends. The addon-fit package is specifically designed to work with xterm.js to provide the fitting functionality.
react-xterm is a React component wrapper for xterm.js. It provides a more React-friendly interface for using xterm.js in React applications. While it does not directly provide fitting functionality, it can be used in conjunction with @xterm/addon-fit to achieve similar results in a React environment.
FAQs
An addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables fitting the terminal's dimensions to a containing element. This addon requires xterm.js v4+.
The npm package @xterm/addon-fit receives a total of 2,420,662 weekly downloads. As such, @xterm/addon-fit popularity was classified as popular.
We found that @xterm/addon-fit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.