Console_dot_JS_Android v1.0.0

a small android project to run javascript code and to show the output on a custom console.

  1. Nirmal Paul
    # Console_dot_JS_Android
    a small android application project to run/evaluate javascript code and to show the output on a custom console using a custom 'console.log()' method. With support of file read/write access using Tasker's JavaScript interface. Based on https://github.com/nirmalpaul383/Console_dot_JS
    .................................................................................................................................................................................
    Full sources files(including exported .apk file) can be found on: https://github.com/nirmalpaul383/Console_dot_JS_Android
    .................................................................................................................................................................................

    Welcome to Console.JS(Android) by N Paul. This is a small project to run/evaluate javascript code and to show the output on a custom console using a custom 'console.log()' method.
    You can enter JavaScript code here. You can use the "console.log()" method to output a JS code. It also supports Tasker's JavaScript interface. You can find more information
    about Tasker's JavaScript interface at here.

    .................................................................................................................................................................................

    Console.js(Android) is based on "Console.js" project by me. This project is very similar to my another project "Tasker.js" which is based on "JavaScript_Console_Mini-inside-webpage" project by me.

    But the main difference between these(Console.js(Android) & 'Console.js') and those('Tasker.js' & 'JavaScript_Console_Mini-inside-webpage') project are that, these never instantly
    return the output of a code until "console.log()" method is used
    but those always return an output(regardless of defined/undefinded value). Another difference is that when a code
    is thrown into those
    ('JavaScript_Console_Mini-inside-webpage' & 'Tasker.js'), they first read it, then evaluate it, then print its output and are ready to take the another code
    again
    (not forgetting the old codes). But comparatively in these project, if codes are thrown into these, these first read the entire codes, then evaluate it, and if there is
    "console.log()" method only then output it, and if we throw a new code, these forgets the previously executed code.


    .................................................................................................................................................................................

    Console.js (Android) supports two JavaScript code execution modes. The first one is Tasker's JavaScriptlet mode (based on Tasker's sences and JavaScriptlet) and the second is
    WebView mode (based on HTML, CSS and JavaScript (and android's WebView)). Most JavaScript code will run almost equally in these two modes, and these two modes support Tasker's
    JavaScript interface. However, in terms of execution speed, it can be said that the WebView mode is relatively faster (However, depending on the JavaScript code, exceptions may
    occur). In terms of features, Tasker JavaScriptlet mode currently has a few more features. For example it supports JavaScript scrict ("use strict") mode, it can read and execute
    local or network javascript file through a graphical interface (although with the help of Tasker JavaScript interface we can read and execute local JavaScript file in webview
    mode also. We can use fetch api or xmlhttprequest for network js file.). Here is a small example of how to execute local js files through Tasker JavaScript interface:
    let fileDataHolder = readFile ("local file path"); and to execute it use the syntax: eval (fileDataHolder). You can find more information about Tasker JavaScript interface here
    https://tasker.joaoapps.com/userguide/en/javascript.htm .

    .................................................................................................................................................................................

    Here are some ScreenShots:

    Console.js (Android) supports two JavaScript code execution modes:
    [​IMG]

    Tasker's JavaScriptlet Mode: UI:
    [​IMG]

    WebView mode: UI:
    [​IMG]

    Tasker's JavaScriptlet Mode: simple for loop:
    [​IMG]

    WebView mode: simple for loop:
    [​IMG]

    Tasker's JavaScriptlet Mode: Executing a network JS file using UI:
    [​IMG]

    WebView mode: Executing a local JS file using Tasker's JavaScript Interface:
    [​IMG]
    .................................................................................................................................................................................

    About app compatibility:
    This application's icon and contains are designed and developed by me (N Paul). This program is best suitable for stock android with HD (720x1280 p) and FullHD+ (1080x2160 p)
    resolution's display.

    About source project:
    This application is made with Tasker: (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm) and with Tasker app factory:
    (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory ). To install and run 'Console.js(android)' you will not need any of this application. However,
    if you want to ‘view’ or ‘modify’ source file you 'will need' Tasker application and if you want to 'export your own modification' then you 'will need both' Tasker and its
    extension app Tasker app factory.

    .................................................................................................................................................................................

    If you like these project please give a star to these projects.
    Console_dot_JS_Android & It' s Main project .

    if you like to check out my previous similar projects you can visit
    Project_Tasker_dot_JS & It's Main project

    This project is originally made by me(N Paul).
    My github profile , My youtube page

    This is an open source program. You are welcomed to modify it...
    If you want to support me please give a like to our FaceBook page .

    .................................................................................................................................................................................