MCPcopy
hub / github.com/jcubic/jquery.terminal / terminal

Function terminal

__tests__/terminal.spec.js:3885–3891  ·  view source on GitHub ↗
(fetch, options = {})

Source from the content-addressed store, hash-verified

3883 });
3884 }
3885 function terminal(fetch, options = {}) {
3886 return $('<div/>').terminal(async function() {
3887 const res = await fetch.call(this);
3888 const text = await res.text();
3889 this.echo(text);
3890 }, { greetings: false, ...options });
3891 }
3892 describe('fetch with abort', () => {
3893 let term;
3894 beforeEach(() => {

Callers 1

terminal.spec.jsFile · 0.85

Calls 3

$Function · 0.85
terminalMethod · 0.80
echoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…