3.0.1 • Published 7 months 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
7 months ago
3.0.1
10 months ago
3.0.0
1 year ago
2.0.0
1 year ago
1.0.2-dev.1
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.0.37-dev.2
3 years ago
0.0.37-dev.1
3 years ago
0.0.37-dev
3 years ago
0.0.36
3 years ago
0.0.36-dev
3 years ago
0.0.35
3 years ago
0.0.34
3 years ago
0.0.32
3 years ago
0.0.31
3 years ago
0.0.30
3 years ago
0.0.30-dev.1
3 years ago
0.0.30-dev
3 years ago
0.0.29
3 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago