1.2.1 • Published 2 months ago

log2textarea v1.2.1

Weekly downloads
8
License
GPL-3.0-or-later
Repository
-
Last release
2 months ago

log2textarea

Simple logger to your textarea DOM

Demo: https://log2textarea.calantas.org

#Usage: Add a textarea tag to your website html:

<textarea id="foo" rows="25" cols="80"></textarea>

Add a script import tag to your project:

<script src="node_modules/log2textarea/dist/log2textarea.js"></script>

Add the below to your code declaration:

example:

  • 1 parameter: Textarea ID
  • 2 parameter: init log message to show in the log
  • 3 parameter: clear log after load new page, default is true
let log = new Log2textarea("foo");
log.info("hello");
log.clear("");
log.info("hello again");
}

supported formats: csv, xlsx, xls

Log2textarea

Module Log2textarea

module.exports ⏏

Kind: Exported class

module.exports#info(s) ⇒ bolean

Kind: Exported function
Returns: bolean - - nonting

ParamTypeDescription
sstringstring message

Example

var log = new Log2textarea("fooid","...start planning module");
log.info("get data from: http://foobar.com");

module.exports#clear() ⇒ bolean

Kind: Exported function
Returns: bolean - - void
Example

var log = new Log2textarea("fooid","...start planning module");
log.clear();
1.2.1

2 months ago

1.1.2

10 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago