> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/elixir/packages/nanoid.md).

# Nanoid

A port of nodes nano\_id which is a small, url safe, id generator that is better than uuid because it uses more letters allowing it to be 21 letters instead of 36.

```elixir
      {:nanoid, "~> 2.0.2"},
```

```elixir
Nanoid.generate(12)
```
