@blackglory/uid-js
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

uid-js

Install

npm install --save @blackglory/uid-js
# or
yarn add @blackglory/uid-js

API

UIDClient

interface IUIDClientOptions {
  server: string
  basicAuth?: {
    username: string
    password: string
  }
  keepalive?: boolean
  timeout?: number
}

interface IUIDClientRequestOptions {
  signal?: AbortSignal
  keepalive?: boolean
  timeout?: number | false
}

class UIDClient {
  constructor(options: IUIDClientOptions)

  generateNanoID(options: IUIDClientRequestOptions = {}): Promise<string>
  generateUUID(options: IUIDClientRequestOptions = {}): Promise<string>
}

Readme

Keywords

none

Package Sidebar

Install

npm i @blackglory/uid-js

Weekly Downloads

56

Version

0.7.2

License

MIT

Unpacked Size

9.85 kB

Total Files

11

Last publish

Collaborators

  • black_glory