https://github.com/live-codes/clio-browser-compiler
https://github.com/live-codes/clio-browser-compiler
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/live-codes/clio-browser-compiler
- Owner: live-codes
- License: apache-2.0
- Created: 2022-01-02T20:45:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T12:04:41.000Z (over 4 years ago)
- Last Synced: 2025-07-01T21:37:14.477Z (12 months ago)
- Language: JavaScript
- Size: 462 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.