1.5.0 • Published 11 months ago
persistent-user-id v1.5.0
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