No Problem, Meatbag

    textarea-log

    0.0.13 • Public • Published

    textarea-log


    Create a textarea where debug log can be written.

    This was created due to the difficulty I had when copying lengthy debug logs created by console.log.

    clone

    $ fossil clone https://chiselapp.com/user/frostbane/repository/textarea-log textarea-log.fossil
    $ fossil open textarea-log.fossil

    usage

    <script type="text/javascript"
            src="textarea.js"></script> 
    // show textarea
    textarea.show();
     
    // output some log to text area
    textarea.log("date and time now is :", new Date());

    documentation

    install dependencies

    $ npm install

    generate documentation and see doc/textarea-log/index.html for the complete API

    $ ./node_modules/.bin/grunt document

    Basic API

    show

    show the textarea

    void textarea.show();

    hide

    hide the textarea

    void textarea.hide();

    getBuffer

    get the text area buffer content

    String textarea.getBuffer();

    clear

    clear the textarea

    everytime the buffer is cleared the cleared contents is added to the buffer history

    void textarea.clear();

    getHistory

    get a copy of the buffer history

    String[] textarea.getHistory();

    clearHistory

    clear the buffer history

    void textarea.clearHistory();

    Injecting the console

    ``console.log(),console.error()`, etc. will also be logging the output to the textarea.

    textarea.injectConsole();
     
    console.log(new Date(), console injection completed.");

    Install

    npm i textarea-log

    DownloadsWeekly Downloads

    1

    Version

    0.0.13

    License

    SEE LICENSE IN LICENSE.md

    Unpacked Size

    22.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • frostbane