Contents
About:
A simple and fast unique GUID generator in JavaScript, which is simple to integrate in your pure JavaScript project and also compatible with Node.js.
Features:
It works based on milliseconds therefore, duplication is not possibleIt usually takes to execute between 0.1ms and 0.5msIt does supports node.js and client side
How to install and use it?
1. Download the code by clicking the ‘Download’ button above and import the GUID generator.
#For client JavaScript
import { Guid } from “../src/guid”;
#For node.js
let { Guid } = require(“../src/guid”);
2. To generate the unique GUID, use below code:
Guid.NewGuid();
#output
// 1q6G3w1U-8F0D-8p9R-7m6m-5b5B7G7B9M9S
The post Simple and fast unique GUID generator in JavaScript appeared first on Lipku.com.