Pluggable LiveScript compiler that extends the original compiler with plugin support for code transformation and AST manipulation. It is part of the livescript-system ecosystem and requires the master branch of livescript (not the npm version). Version 0.1.1 is a work-in-progress, with constant development and a messy codebase; not recommended for production use. It provides plugins for ES modules, implicit async, and Object.create-based cloning. Released under BSD-3-Clause.
npm install livescript-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the compiler, using compile to transform LiveScript to JavaScript, and creating a SourceNode for source map generation.
Use official livescript package instead.
Install livescript from GitHub: npm install 'https://github.com/gkz/LiveScript'
Use import syntax or dynamic import(). Do not use require().
npm install 'https://github.com/gkz/LiveScript'
Add 'type': 'module' to package.json or use a .mjs extension.
Use: import compiler from 'livescript-compiler'; then compiler.compile(...).