# @types/uid-generator

> TypeScript definitions for uid-generator

Latest version **2.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/uid-generator
pnpm add @types/uid-generator
yarn add @types/uid-generator
bun add @types/uid-generator
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2023-11-07 |
| First published | 2019-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51469 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/uid-generator
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-generator
- npm.io page: https://npm.io/package/@types/uid-generator

## Recent versions

- 2.0.6 (latest) — 2023-11-07
- 2.0.4 (ts4.3) — 2023-08-30
- 2.0.3 (ts3.8) — 2021-12-24
- 2.0.2 (ts2.0) — 2019-11-05
- 2.0.5 — 2023-10-18
- 2.0.1 — 2019-11-01
- 2.0.0 — 2019-08-09

## README

# Installation
> `npm install --save @types/uid-generator`

# Summary
This package contains type definitions for uid-generator (https://github.com/nwoltman/node-uid-generator).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-generator.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-generator/index.d.ts)
````ts
interface UIDGeneratorInstance {
    readonly bitSize: number;
    readonly uidLength: number;
    readonly baseEncoding: string;
    readonly base: number;
    generateSync(): string;
    generate(): Promise<string>;
    generate(cb: (error: Error | null, uid: string) => any): void;
}

interface UIDGeneratorClass {
    new(bitSize?: number, baseEncoding?: string): UIDGeneratorInstance;
    new(baseEncoding?: string): UIDGeneratorInstance;
    readonly BASE16: "0123456789abcdef";
    readonly BASE36: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    readonly BASE58: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
    readonly BASE62: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    readonly BASE66: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";
    readonly BASE71: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!'()*-._~";
    readonly BASE94: "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
}

declare const UIDGenerator: UIDGeneratorClass;

export = UIDGenerator;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [KyleChine](https://github.com/kylechine).

---
_Source: https://npm.io/package/@types/uid-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
