1.17.2 • Published 3 months ago

@storm-stack/unique-identifier v1.17.2

Weekly downloads
-
License
Apache License 2....
Repository
github
Last release
3 months ago

Version  Nx NextJs Commitizen friendly Semantic-Release documented with docusaurus GitHub Workflow Status (with event)

!IMPORTANT This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.

Storm Unique Identifier Package

This package provides a simple way to generate various types of unique identifiers. It is designed to be used in a browser or NodeJS environment.

Installing

Using pnpm:

pnpm add -D @storm-stack/unique-identifier
npm install -D @storm-stack/unique-identifier
yarn add -D @storm-stack/unique-identifier

Available Identifiers

This package includes generator functions for the following type of identifiers:

IdentifierDescriptionDetails
Snowflake IdentifierSnowflakes are 64 bits in binary. (Only 63 are used to fit in a signed integer.) The first 41 bits are a timestamp, representing milliseconds since the chosen epoch. The next 10 bits represent a machine ID, preventing clashes. Twelve more bits represent a per-machine sequence number, to allow creation of multiple snowflakes in the same millisecond. The final number is generally serialized in decimal.https://en.wikipedia.org/wiki/Snowflake_ID
Universally Unique Identifier (UUID)A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is also used, typically in software created by Microsoft. When generated according to the standard methods, UUIDs are for practical purposes unique. Their uniqueness does not depend on a central registration authority or coordination between the parties generating them, unlike most other numbering schemes.https://en.wikipedia.org/wiki/Universally_unique_identifier
Customer User Identifier (CUID)Collision-resistant IDs optimized for horizontal scaling and performance.https://support.appsflyer.com/hc/en-us/articles/207032016-Customer-User-ID-field-CUID-

Reduced Package Size

This project uses tsup to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects.

Development

This project is built using Nx. As a result, many of the usual commands are available to assist in development.

Building

Run nx build unique-identifier to build the library.

Running unit tests

Run nx test unique-identifier to execute the unit tests via Jest.

Linting

Run nx lint unique-identifier to run ESLint on the package.

Storm Workspaces

Storm workspaces are built using Nx, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.

Roadmap

See the open issues for a list of proposed features (and known issues).

Support

Reach out to the maintainer at one of the following places:

License

This project is licensed under the Apache License 2.0. Feel free to edit and distribute this template as you like.

See LICENSE for more information.

Changelog

This project adheres to Semantic Versioning. Every release, along with the migration instructions, is documented in the CHANGELOG file

Contributing

First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

Please adhere to this project's code of conduct.

You can use markdownlint-cli to check for common markdown style inconsistency.

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Storm Software is an open source software development organization and creator of Acidic, StormStack and StormCloud. Our mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languagues.

If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our website!

1.16.2

3 months ago

1.17.2

3 months ago

1.17.1

3 months ago

1.17.0

3 months ago

1.16.1

3 months ago

1.16.0

3 months ago

1.15.4

3 months ago

1.15.3

3 months ago

1.15.2

3 months ago

1.15.1

3 months ago

1.14.5

3 months ago

1.15.0

3 months ago

1.14.1

3 months ago

1.14.0

3 months ago

1.14.4

3 months ago

1.14.3

3 months ago

1.14.2

3 months ago

1.13.11

3 months ago

1.13.2

3 months ago

1.13.1

3 months ago

1.13.6

3 months ago

1.13.5

3 months ago

1.13.4

3 months ago

1.13.3

3 months ago

1.13.9

3 months ago

1.13.8

3 months ago

1.13.10

3 months ago

1.13.7

3 months ago

1.12.7

4 months ago

1.13.0

4 months ago

1.12.6

4 months ago

1.12.5

4 months ago

1.12.4

4 months ago

1.12.3

4 months ago

1.12.2

4 months ago

1.11.2

4 months ago

1.11.1

4 months ago

1.11.0

4 months ago

1.9.0

4 months ago

1.8.1

4 months ago

1.10.0

4 months ago

1.7.2

4 months ago

1.8.0

4 months ago

1.7.1

4 months ago

1.7.0

4 months ago

1.6.1

4 months ago

1.6.0

4 months ago

1.4.4

5 months ago

1.4.3

5 months ago

1.5.1

5 months ago

1.4.2

5 months ago

1.5.0

5 months ago

1.4.1

5 months ago

1.4.0

5 months ago

1.3.3

5 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.3.0

5 months ago

1.2.12

5 months ago

1.2.10

5 months ago

1.2.11

5 months ago

1.2.9

5 months ago

1.2.8

5 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.0

5 months ago

1.2.1

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago