Giter Site home page Giter Site logo

dedalik / console-to-terminal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atsikov/console-to-terminal

0.0 2.0 0.0 42 KB

Small utility to redirect console log/warn/error/info/trace calls to HTTP requests and show output in terminal

JavaScript 100.00%

console-to-terminal's Introduction

console-to-terminal

console-to-terminal is a small utility to redirect console output (log, warn, error, info or trace) to the terminal. It is really handy while debugging web applications without a possibility to check console in DevTool (Chrome on iOS or custom "native" browsers on Androids).

Usage

  1. Clone repo and run yarn to install dependencies
  2. Run yarn start to start server. By defaut it is run on localhost:8765. Host and port could be modified if server started with yarn start port or yarn start host:port.
  3. Add <script src="http://my-local-ip:port/console-hook.js"></script> to your web application's entry point. It will install custom hooks for console methods and will make requests to running server.
  4. In case you want to load hooks script from your own endpoint, you need to specify window["__consoleToTerminalLocation__"] object with host and port properties. E.g., window["__consoleToTerminalLocation__"] = { host: "127.0.0.1", port: 8000 }.

Demo

Simply run server as described in Usage section and navigate to http://host:port/demo (http://localhost:8765/demo) by default.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.