From 9b6a0468297b81ab931bcb5fe310670fc63afa83 Mon Sep 17 00:00:00 2001 From: Sebastian Korotkiewicz Date: Tue, 6 Feb 2024 07:30:10 +0100 Subject: [PATCH] i need to change name becouse: Package name too similar to existing package --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f3cebfc..f925bfd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# snowflakeid +# @skorotkiewicz/snowflake-id > Snowflake ID is a unique identifier commonly used in distributed systems to generate unique IDs with a timestamp component. It is designed to ensure uniqueness, even in distributed and highly concurrent environments. @@ -13,15 +13,15 @@ By combining these components, Snowflake IDs provide a reliable way to generate ## Install ``` -yarn add snowflakeid +yarn add @skorotkiewicz/snowflake-id or -npm i snowflakeid +npm i @skorotkiewicz/snowflake-id ``` ## Usage ```js -import { Snowflake, decodeSnowflake } from "snowflakeid"; +import { Snowflake, decodeSnowflake } from "@skorotkiewicz/snowflake-id"; (async () => { const machineId = 1; // machine ID (0-1023) diff --git a/package.json b/package.json index 3d362c2..b2e1138 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "snowflakeid", + "name": "@skorotkiewicz/snowflake-id", "version": "1.0.0", "description": "Snowflake ID is a unique identifier commonly used in distributed systems to generate unique IDs with a timestamp component. It is designed to ensure uniqueness, even in distributed and highly concurrent environments.", "scripts": {