# sketch-polyfill-console

A [console](https://developer.mozilla.org/en-US/docs/Web/API/Console) polyfill for sketch. It is automatically included (when needed) when using [skpm](https://github.com/skpm/skpm).

It is allow to log in both the JavaScript context and the Sketch channel, ie. it calls both `console.x` and `log`.

## Installation

```bash
npm i -S @skpm/console
```

## Usage

```js
import Console from "@skpm/console"

const console = Console()

console.log("hello world")
```
