🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@dags/uid-local

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dags/uid-local

UID for local use implemented as a counter

0.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

UID for local use - implemented as a counter.

It is specialized for the cases that do not require global uniqueness, but require memory savings and speed.

Usage

import { UIDLocal } from '@dags/core'

const uid1 = new UIDLocal()
const uid2 = new UIDLocal()

console.log(uid1)
console.log(uid2)
console.log(uid1.equals(uid2))

Keywords

counter

FAQs

Package last updated on 31 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts