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

https://github.com/live-codes/clio-browser-compiler


https://github.com/live-codes/clio-browser-compiler

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Clio browser compiler

Based on [Clio playground](https://github.com/clio-lang/clio/tree/develop/packages/playground).

## Usage

```html

const src = `
export fn main:
console.log "Hello world!"
`;

(async () => {
const { code } = await clioCompiler.compile(src);
await clio.exec(
code,
"https://cdn.jsdelivr.net/npm/@live-codes/clio-browser-compiler/public/build/worker.js"
);
})();

```

## License

Apache License 2.0, same as Clio.