Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tpluscode/wc-runkit
- Owner: tpluscode
- Created: 2020-02-25T09:35:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T03:18:29.000Z (over 1 year ago)
- Last Synced: 2024-11-19T09:54:23.173Z (about 1 month ago)
- Language: JavaScript
- Size: 434 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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`