🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@replit/ruspty

Package Overview
Dependencies
Maintainers
35
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@replit/ruspty

Running:

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
38K
-4.21%
Maintainers
35
Weekly downloads
 
Created
Source

@replit/ruspty - PTY for Bun (and Node) through Rust FFI

Running:

  • bun install
  • bun run build / bun run build:debug
  • bun test

The code mainly targets Bun, but does work in Node too.

The biggest difference from existing PTY libraries is that this one works with Bun, and doesn't cross the FFI bridge for every input/output instead requiring the consumer to deal with the fd of the PTY.

The Rust PTY implementation is cargo-culted from Alacritty's Unix TTY code.

Publishing

Following "Publish It" section from napi-rs docs:

  • npm version [major|minor|patch]
  • git push --follow-tags

Github Action should take care of publishing after that.

NPM_TOKEN is part of the repo secrets, generated like this.

FAQs

Package last updated on 06 May 2024

Did you know?

Socket

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.

Install

Related posts