LIVESCRIPT(1)
π LIVESCRIPT(1) π
okay bestie, listen β this is the manual page for LiveScript, version 1.6.1, from the User Commands corner of the manual. it's giving "cozy little language that compiles to JavaScript" and honestly? iconic. let's get into it β¨
πΈ SYNOPSIS πΈ
lsc [option]... [file]...
π DESCRIPTION π
so basically, if you run lsc with no options at all, it just starts up the REPL for you. no cap. just vibes and a prompt π¦
β¨ Misc: β¨
-v,--versionβ shows you the version, that's it, that's the whole job π-h,--helpβ prints this very help message so you're never lost π«Ά-c,--compileβ compiles your stuff to JavaScript and saves it as.jsfiles-e,--eval code::Stringβ hands your input over as a string straight from the command line, no file needed-d,--preludeβ automatically importsprelude.lsin the REPL, so it's just there for you-r,--require paths::[String]β requires libraries before executing anything-s,--stdinβ reads from stdin, lowkey the classic-j,--jsonβ prints/compiles as JSON-n,--nodejsβ everything after this gets passed through to thenodebinary, iykyk-w,--watchβ watches your scripts for changes and repeats, over and over, main character energy π₯-k,--constβ compiles all variables as constants, commitment issues: none
π Output control: π
-o,--output path::Stringβ compiles into the directory you specify-p,--printβ prints the result to stdout-b,--bareβ compiles without the top-level function wrapper, naked code fr--no-headerβ doesn't add the"Generated by"header-l,--lexβ prints the tokens the lexer produces π-t,--tokensβ prints the tokens the rewriter produces-a,--astβ prints the syntax tree the parser produces, look at the whole skeleton bestie--debugβ prints debug output while compiling-m,--map Stringβ generates source maps, and it's gotta be one of exactly these:'none','linked','linked-src','embedded', or'debug'β no improvising β--no-warnβ suppresses compiler warnings, shhh π€«
heads up: the value you pass to-m/--maphas to be one of those five exact strings, bestie.'none','linked','linked-src','embedded','debug'. that's the whole menu.
also, for the record:
Version 1.6.1 <http://livescript.net/>
and that's the page π thanks for coming to my TED talk. this was LiveScript version 1.6.1, dated June 2022, and it lives at LIVESCRIPT(1). go forth and lsc, bestie πβ¨π¦
π¦ where this page comes from
- debian bookworm: livescript 1.6.1+dfsg-3 Β· MIT
- debian trixie: livescript 1.6.1+dfsg-3 Β· MIT
- ubuntu noble: livescript 1.6.1+dfsg-3 Β· MIT
- ubuntu questing: livescript 1.6.1+dfsg-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms