3.0.1 • Published 2 years ago

@jawis/jagov v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

3 years ago

2.0.0

3 years ago

1.0.2-dev.1

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.37-dev.2

5 years ago

0.0.37-dev.1

5 years ago

0.0.37-dev

5 years ago

0.0.36

5 years ago

0.0.36-dev

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.30-dev.1

5 years ago

0.0.30-dev

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago