Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/skpm/console
- Owner: skpm
- License: mit
- Created: 2018-02-27T16:54:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T21:36:30.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T21:01:34.124Z (9 months ago)
- Topics: console, polyfill, sketch
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
```