object

# `nanoid(Representation,Size,Alphabet)`

- `Representation` - Text representation for the NanoID. Possible values are `atom`, `chars`, and `codes`.

- `Size` - Number of symbols in the NanoID.

- `Alphabet` - Alphabet used for generating NanoIDs represented as an atom, list of characters, or list of character codes.

NanoID generator.

Availability:
`logtalk_load(nanoid(loader))`
Author: Paulo Moura
Version: 1:0:1
Date: 2026-06-01
Compilation flags:
`static, context_switching_calls`
Implements:
`public` nanoid_protocol
Uses:
crypto
list
Remarks:
(none)
Inherited public predicates:
generate/1

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)

See also

nanoid, ids(Representation,Bytes), ulid(Representation), uuid(Representation)