Created
February 2, 2019 05:19
-
-
Save parzibyte/677238f7296213ca3f1401e5f27d31e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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