Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 2, 2019 05:19
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/677238f7296213ca3f1401e5f27d31e1 to your computer and use it in GitHub Desktop.
Save parzibyte/677238f7296213ca3f1401e5f27d31e1 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
for (let x = 0; x < 20; x++) {
console.log("El id único es: ", uuidv4());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment