Awesome
stdlib
<a href="https://github.com/gleam-lang/stdlib/releases"><img src="https://img.shields.io/github/release/gleam-lang/stdlib" alt="GitHub release"></a> <a href="https://discord.gg/Fm8Pwmy"><img src="https://img.shields.io/discord/768594524158427167?color=blue" alt="Discord chat"></a>
Gleam's standard library! Documentation available on HexDocs.
Installation
Add gleam_stdlib
to your Gleam project.
gleam add gleam_stdlib
Usage
Import the modules you want to use and write some code!
import gleam/string
pub fn greet(name: String) -> String {
string.concat(["Hello ", name, "!"])
}
Targets
Gleam's standard library supports both targets: Erlang and JavaScript.
Compatibility
This library is compatible with all versions of Erlang/OTP 26 and higher, as well as all NodeJS, Deno, Bun, and major browsers that are currently supported by their maintainers. If you have a compatibility issue with any platform open an issue and we'll see what we can do to help.