@litert/[email protected]

该文章根据 CC-BY-4.0 协议发表,转载请遵循该协议。
本文地址:https://fenying.net/en/project/litert/uuid/v1.0.0/

@litert/uuid is a UUID library developed entirely in TypeScript, providing the following three UUID generation algorithms:

  • Snowflake: Twitter’s snowflake algorithm, supports distributed environments.

  • Snowflake-SI (Safe Integer): A safe integer version of the snowflake algorithm for JavaScript.

  • Snowflake-SI-vA: A variant of the Snowflake-SI algorithm.

安装

1npm install @litert/uuid@^1.0.0