Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skpm/console

A drop in replacement for the console module enable system logging
https://github.com/skpm/console

console polyfill sketch

Last synced: about 2 months ago
JSON representation

A drop in replacement for the console module enable system logging

Awesome Lists containing this project

README

        

# 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")
```