LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

elm

Functional frontend language compiler and toolchain

TLDR

Initialize Elm project
$ elm init
copy
Compile Elm file
$ elm make [src/Main.elm]
copy
Compile to JavaScript
$ elm make [src/Main.elm] --output=[main.js]
copy
Start development server
$ elm reactor
copy
Start interactive REPL
$ elm repl
copy
Install package
$ elm install [elm/http]
copy

SYNOPSIS

elm command [options]

DESCRIPTION

elm is the command-line tool for the Elm programming language, a functional language for frontend web development. It handles project initialization, compilation, package management, and development tools.Elm compiles to JavaScript with no runtime exceptions through its strong type system. The compiler provides friendly error messages that help fix issues.The reactor provides a development server with hot reloading, while repl offers interactive Elm evaluation.

PARAMETERS

COMMAND

Operation: init, make, reactor, repl, install, etc.
init
Initialize new Elm project.
make FILE
Compile Elm source file.
--output FILE
Output file path.
--optimize
Enable optimizations.
reactor
Start development server.
repl
Start interactive shell.
install PACKAGE
Install Elm package.
diff PACKAGE V1 V2
Show API differences between package versions.
bump
Bump version based on API changes.
publish
Publish package to the Elm package repository.

INSTALL

sudo apt install elm-compiler
copy
brew install elm
copy

CAVEATS

Breaks with major versions (0.19 not compatible with 0.18). Limited JavaScript interop. Smaller ecosystem than mainstream languages. Strict type system has learning curve.

HISTORY

Elm was created by Evan Czaplicki as his thesis project in 2012. It pioneered the "Elm Architecture" pattern that influenced React/Redux and other frontend frameworks.

SEE ALSO

node(1), npm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid