Chromium's hterm, automatically packaged as a UMD module (CommonJS/AMD/globals)
$ npm install hterm-umdjs
import { hterm, lib } from 'hterm-umdjs';
// or
const { hterm, lib } = require('hterm-umdjs');
hterm.defaultStorage = new lib.Storage.Memory();
const term = new hterm.Terminal();