Skip to content

$.util

Overview

Sample Usage

const util = $.util;

let randomID = util.createUuid();

// Uint8Array
let arrayBuffer = [
    84, 104, 105, 115, 32, 105,
    115, 32, 97, 32, 85, 105,
];

let convertedBuff = util.stringify(arrayBuffer);

let result = `randomID is : ${randomID} `;
result += `\nconvertedBuff is: ${arrayBuffer} `;

$.response.setBody(result);

Classes

Classes Description
SAXParser Class for parsing XML. It is based on expat.
Zip Class for manipulation of zip archives.

Functions

Members Description Returns
createUuid() Returns a unique UUID. string
stringify(data) Recieves UintArray and return converted value. string