pty64

Fork processes with pseudo terminal, allow to output in base64

Usage no npm install needed!

<script type="module">
  import pty64 from 'https://cdn.skypack.dev/pty64';
</script>

README

pty64

A simple command line utility based on pty.js.

It allows you to fork processes with pseudo terminal file descriptors, for example to run commands in non interactive envs. So certain programs will think that it works inside terminal.

It also allows you to transform output of terminal control sequences into base64 format.

Install

npm install --global pty64

Usage example

# run any command with pty
pty64 -- {any command}
# transform output into base64
pty64 --base64 -- {any command}