@replit/ruspty
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Running:

  • bun install
  • bun run build
  • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @replit/ruspty

Weekly Downloads

24,975

Version

1.1.1

License

MIT

Unpacked Size

43.8 kB

Total Files

12

Last publish

Collaborators

  • krishatreplit
  • mikewesthad
  • motzyball
  • juan.replit
  • ahulbert-replit
  • james-addison-replit
  • replitdstewart
  • ryanweingast
  • harryatreplit
  • theflowingsky
  • jonesit-replit
  • szymon_k
  • cdmistman
  • jackyzha0
  • jamesaustinreplit
  • lopezhoracio
  • bradymaddenreplit
  • ryantm
  • alexisreplit
  • ink404
  • brianpool
  • tobyho
  • brenoafb
  • masad-frost
  • lincolnreplit
  • stkenned
  • replitmatt
  • cbrewster
  • ltazmin_replit
  • moudy
  • schestakov
  • lhchavez
  • slmjkdbtl
  • lunaroyster