Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gleam-lang/stdlib
🎁 Gleam's standard library
https://github.com/gleam-lang/stdlib
gleam stdlib types
Last synced: about 1 month ago
JSON representation
🎁 Gleam's standard library
- Host: GitHub
- URL: https://github.com/gleam-lang/stdlib
- Owner: gleam-lang
- License: apache-2.0
- Created: 2019-10-27T20:49:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-20T19:07:28.000Z (about 2 months ago)
- Last Synced: 2024-10-20T23:40:13.444Z (about 2 months ago)
- Topics: gleam, stdlib, types
- Language: Gleam
- Homepage: https://hexdocs.pm/gleam_stdlib/
- Size: 7.8 MB
- Stars: 476
- Watchers: 12
- Forks: 168
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-list - stdlib - lang | 112 | (Rust)
- awesome-gleam - gleam_stdlib - [📚](https://hexdocs.pm/gleam_stdlib/) - A standard library for the Gleam programming language (Packages / Data Structures)
README
# stdlib
![CI](https://github.com/gleam-lang/stdlib/workflows/CI/badge.svg?branch=main)Gleam's standard library!
Documentation available on [HexDocs](https://hexdocs.pm/gleam_stdlib/).## Installation
Add `gleam_stdlib` to your Gleam project.
```sh
gleam add gleam_stdlib
```## Usage
Import the modules you want to use and write some code!
```gleam
import gleam/stringpub 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.