Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tpluscode/wc-runkit

Dead simple RunKit web component
https://github.com/tpluscode/wc-runkit

Last synced: 4 days ago
JSON representation

Dead simple RunKit web component

Awesome Lists containing this project

README

        

> # @tpluscode/run-kit
Dead simple RunKit web component

## Installation

With unpkg, add this to page:

```html

```

## Usage

Add a `` element with a `

` inside

```html


const hello = require("simple-hello-world-example")

myApp.printMsg()

```

When using in a static-page generator, you might use triple backticks instead of `

` to have the highlighted

code be displayed until runkit initializes its embed.



```js
const hello = require("simple-hello-world-example")

myApp.printMsg()
```

## Configuration

All options follow [Embed API](https://runkit.com/docs/embed#embed-api) docs page

### Node Version

```

```

The default is `12`