Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

v1

  • v1(): string
  • deprecated

    Version 1, based on timestamp and MAC address (RFC 4122)

    example
    
    import * as uuid from 'uuid';
    console.log(uuid.v1()); // d149d808-63a7-11e8-8bff-90e2ba2ce5ec
    

    Returns string

v4

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

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

    Returns string