Skip to content

UUID

UUID object is used to generate random universally unique identifiers.

Basic Usage

var uuid = require("utils/v4/uuid");
var response = require("http/v4/response");

response.println(uuid.random());
response.println(uuid.validate("14a3ddce-f86d-4f51-a2e0-6e497b94bbe5"));

response.flush();
response.close();

Functions


Function Description Returns
random() Returns a random UUID string string
validate(input) Validates whether the provided input is a valid UUID string boolean
Back to top