<commit_before>sketch-devtools-console
=======================

A companion CocoaScript framework for Sketch DevTools Console module.

## Installation

TODO: Text goes here!

## Usage

```JavaScript
#import 'cocoascript_modules/console.js'
console.log("Hi Handsome! :)");
```

## Console API Reference

TODO: Text goes here!

### console.clear()

TODO: Text goes here!

### console.count(label)

TODO: Text goes here!

### console.log(object [, object, ...])

TODO: Text goes here!

### console.indent(times)

TODO: Text goes here!

### console.unindent(times)

TODO: Text goes here!

### console.group(label)

TODO: Text goes here!

### console.groupEnd()

TODO: Text goes here!

### console.time(label)

TODO: Text goes here!

### console.timeEnd()

TODO: Text goes here!

### console.tag(tag,str,level)

TODO: Text goes here!

### console.assert(condition,obj)

TODO: Text goes here!

### console.header(title,size)

TODO: Text goes here!

### console.model(obj)

TODO: Text goes here!

### console.className(label,obj)

TODO: Text goes here!

### console.logImage(image)

TODO: Text goes here!<commit_msg>Docs.<commit_after>sketch-devtools-console
=======================

A companion CocoaScript framework for Sketch DevTools Console module.

## Installation

TODO: Text goes here!

## Usage

```JavaScript
#import 'cocoascript_modules/console.js'
console.log("Hi Handsome! :)");
```

## Console API Reference

TODO: Text goes here!

### console.clear()

Clears the console.

```JavaScript
console.clear();
```

### console.count(label)

Writes the the number of times that `count()` has been invoked at the same line and with the same label.

```JavaScript
function processLayer(layer) {
    console.count("processLayer called");
    // processLayer() code...
}
```

### console.log(object [, object, ...])

TODO: Text goes here!

### console.indent(times)

TODO: Text goes here!

### console.unindent(times)

TODO: Text goes here!

### console.group(label)

TODO: Text goes here!

### console.groupEnd()

TODO: Text goes here!

### console.time(label)

Starts a new timer with an associated label. When `console.timeEnd()` is called with the same label, the timer is stopped the elapsed time displayed in the Console. Timer values are in milliseconds.

console.time("Array initialize");

var data=[100000];
for(var i=0;i<100000;i++) {
    data[i]=new Object();
}

console.timeEnd("Array initialize");

TODO: Add sample image.

### console.timeEnd()

Stops the timer with the specified label and prints the elapsed time.

### console.tag(tag,str,level)

TODO: Text goes here!

### console.assert(condition,obj)

TODO: Text goes here!

### console.header(title,size)

TODO: Text goes here!

### console.model(obj)

TODO: Text goes here!

### console.className(label,obj)

TODO: Text goes here!

### console.logImage(image)

TODO: Text goes here!
{'fraction_non_alphanumeric': 0.1607017543859649, 'fraction_numerical': 0.004561403508771929, 'mean_word_length': 4.794715447154472, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2511821', 'n_tokens_mistral': 964, 'n_tokens_neox': 926, 'n_words': 281}