3.0.1 • Published 2 years ago
@jawis/jagov v3.0.1
Jagov
Show output from both node and browser in the browser
Installation
npm i jagov
Usage of Console
Capture the console data in the browser, by loading this script file:
@jawis/console/consoleCaptureMain.js
Make a component you can place where the console should be presented.
import React, { useState } from "react";
import { makeUseConsoleStream } from "@jawis/console";
import { Console } from "@jawis/jagov";
export const MyConsole: React.FC = () => {
const [useConsoleStream] = useState(makeUseConsoleStream);
return (
<Console
//use the data captured in the browser.
useConsoleStream={useConsoleStream}
//get console output on the server.
apiPath={"http://localhost/jago"}
projectRoot={""}
/>
);
};
Known issues
Related work
License
MIT
3.0.1-dev.2
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
2.0.0
3 years ago
1.0.2-dev.1
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.0.37-dev.2
4 years ago
0.0.37-dev.1
4 years ago
0.0.37-dev
4 years ago
0.0.36
4 years ago
0.0.36-dev
4 years ago
0.0.35
4 years ago
0.0.34
4 years ago
0.0.32
4 years ago
0.0.31
4 years ago
0.0.30
4 years ago
0.0.30-dev.1
4 years ago
0.0.30-dev
4 years ago
0.0.29
4 years ago
0.0.28
4 years ago
0.0.27
4 years ago
0.0.26
4 years ago
0.0.25
4 years ago
0.0.24
4 years ago
0.0.23
4 years ago