Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 2, 2019 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0284bc71e852754dd71a5beb2d869841 to your computer and use it in GitHub Desktop.
Save parzibyte/0284bc71e852754dd71a5beb2d869841 to your computer and use it in GitHub Desktop.
/**
* Demostrar uso de UUID v4 en Node JS
* para generar un id único
*
* @author parzibyte
*/
// Obtener módulo
const uuidv4 = require("uuid/v4");
// Y ahora lo llamamos como función
let idUnico = uuidv4();
console.log("El id único es: ", idUnico);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment