package sqids

  1. Overview
  2. Docs
OCaml port of Sqids

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=3ca341fc0dba4b556cc67ca2b9767a15
sha512=d56fd8ae742db5b5096b4e14390825233701f2e7af10e9b2d5bd92370ecf22b6de990cdf686f80445b01ef96d1d23166b5b6c998efd8dcb0749a576cc5e68395

doc/sqids/Sqids/index.html

Module SqidsSource

Sourcetype t

Represents the Sqids configuration. Can be created with make.

Sourcemodule Defaults : sig ... end

Contains the default configuration.

Sourceval make : ?alphabet:string -> ?min_length:int -> ?blocklist:string list -> unit -> t

make ?alphabet ?min_length ?blocklist () creates a new Sqids configuration with the provided parameters.

Sourceval encode : t -> int list -> string

encode sqids ints encodes a list of numbers ints to a string identifier.

Sourceval decode : t -> string -> int list

decode sqids id decodes a string identifier id to a list of numbers.

OCaml

Innovation. Community. Security.