Skip to main content

LiveScript

LiveScript is a language that compiles to JavaScript. It is a fork of Coco, which is itself derived from CoffeeScript. LiveScript features a rich syntax with function composition, pattern matching, and many other functional programming features.

Usage

Demo

show code
import { createPlayground } from 'livecodes';

const options = {
"template": "livescript"
};
createPlayground('#container', options);

Language Info

Name

livescript

Extensions

.ls

Editor

script

Compiler

LiveScript compiler

Version

livescript: v1.6.1

Code Formatting

Not supported.

Custom Settings

Custom settings added to the property livescript are passed as options to the LiveScript compiler. Please check the documentation for full reference.

Please note that custom settings should be valid JSON (i.e. functions are not allowed).

Example:

Custom Settings
{
"livescript": {
"bare": true
}
}

Starter Template

https://livecodes.io/?template=livescript