1.5.0 • Published 11 months ago

persistent-user-id v1.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

presisent-user-Id

This package provides a simple utility for generating and managing a user ID that can be stored in the browser’s localStorage. It ensures that each user is assigned a unique identifier, which is persistent across sessions and retrievable whenever needed.

example import userId from "persistent-user-id" const userId = getUserId(); console.log(userId); // Either returns an existing ID or generates a new one.

credits peerfect

1.5.0

11 months ago

1.0.0

11 months ago