Created
February 2, 2019 05:06
-
-
Save parzibyte/0284bc71e852754dd71a5beb2d869841 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 | |
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