LIVESCRIPT(1)

πŸ“¦
version 1.6.1 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– 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 .js files
  • -e, --eval code::String β€” hands your input over as a string straight from the command line, no file needed
  • -d, --prelude β€” automatically imports prelude.ls in 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 the node binary, 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/--map has 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