Skip to content

gleam-lang/stdlib

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e36083 Β· Sep 12, 2024
Aug 13, 2024
Apr 10, 2023
Apr 10, 2023
Sep 12, 2024
Sep 12, 2024
Mar 18, 2024
Apr 16, 2022
Sep 5, 2024
Aug 9, 2021
Jul 9, 2024
Apr 10, 2023
Apr 10, 2023
Aug 19, 2024

Repository files navigation

stdlib

GitHub release Discord chat CI

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.