• Version 4, based on random numbers (RFC 4122)

    Returns string

    Example


    import * as uuid from 'uuid';
    console.log(uuid.v4()); // 7bd11fef-af41-446e-8630-aec57a0bc891