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