Skip to content

A JavaScript library to generate RFC 4122 compliant UUID

License

Notifications You must be signed in to change notification settings

lonly197/uuidjs

Repository files navigation

uuidjs

Build Status

UUID.js - A JavaScript library to generate RFC 4122 compliant UUID

中文文档

INSTALL

Download lib/index.js or call npm install lonly-uuidjs.

Then, load lib/index.js.

<script src="src/uuid.js"></script>

Or, import uuidjs.

import UUID from "lonly-uuidjs"

USAGE EXAMPLES

UUID.generate() returns a version 4 UUID as a hexadecimal string.

// Create a version 4 UUID as a hexadecimal string
console.log(UUID.generate);   // fa84cf42-ffdf-4975-b42b-31ab5fb983eb

AUTHOR

Lonly lonly197@gmail.com

About

A JavaScript library to generate RFC 4122 compliant UUID

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published