🎁 Gleam's standard library
  • Gleam 83.9%
  • JavaScript 11.5%
  • Erlang 4.6%
Find a file
2025-09-18 15:40:53 +01:00
.github Update CI 2025-06-11 16:26:23 +01:00
.vscode remove ruler 2024-10-28 14:14:24 +00:00
src Consistently use pipes in existing pipe chains 2025-09-18 15:40:53 +01:00
test chore: rename base64 FFI functions 2025-09-17 11:04:04 +01:00
.editorconfig fix-721 2024-11-06 15:43:31 +00:00
.gitignore remove .tool-versions 2022-04-16 10:51:52 +01:00
CHANGELOG.md v0.63.2 2025-09-15 12:25:26 +01:00
deno.jsonc PMap property test 2023-04-10 10:51:24 +01:00
deno.lock PMap property test 2023-04-10 10:51:24 +01:00
gleam.toml v0.63.2 2025-09-15 12:25:26 +01:00
LICENCE Rename LICENSE to LICENCE 2021-08-09 17:30:06 +01:00
README.md v0.60.0 2025-05-13 18:41:50 +01:00

stdlib

Package Version Hex Docs Discord chat

Gleam's standard library! Documentation available on HexDocs.

Installation

Add gleam_stdlib to your Gleam project.

gleam add gleam_stdlib
import gleam/io

pub fn greet(name: String) -> Nil {
  io.println("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.