Module: @nginstack/engine/lib/uuid/createGUID


(require("@nginstack/engine/lib/uuid/createGUID"))(removeFormatChars)

Cria um Globally Unique Identifier - GUID.

Parameters:
Name Type Description
removeFormatChars boolean

Se verdadeiro, retorna um GUID sem caracteres de formatação.

Returns:

GUID gerado.

Type
string
Example
var createGUID = require('@nginstack/engine/lib/uuid/createGUID');
var guidFormatted   = createGUID(false); // {21EC2020-3AEA-1069-A2DD-08002B30309D}
var guidUnformatted = createGUID(true);  // 21EC20203AEA1069A2DD08002B30309D