1.3.3 • Published 12 months ago

@kilann/guid-generator v1.3.3

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
12 months ago

GUID_generator

A utility to generate Comb GUIDs

Installation

npm install @kilann/guid-generator
yarn add @kilann/guid-generator
pnpm add @kilann/guid-generator

Why ?

This package is a simple utility to generate Comb GUIDs. A Comb GUID is a GUID that is generated from a timestamp and a UUID.

It make it sortable and unique.

You can pass in a prefix and/or suffix to the function, this will help you to identify the Comb GUID.

Fully without dependencies.

Usage

import { GUIDGenerator } from "@kilann/guid-generator";

const guid = GUIDGenerator();

// you can also pass in a prefix and/or suffix
const guid = GUIDGenerator("prefix", "suffix");

console.log(guid);

You can also create UUIDs with a prefix and/or suffix

import { UUIDGenerator } from "@kilann/guid-generator";

const uuid = UUIDGenerator();

const uuid = UUIDGenerator("prefix", "suffix");

console.log(uuid);

License

MIT

1.3.3

12 months ago

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.2

12 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago