JSPM

@kudos-protocol/short-id

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q37525F
  • License MIT

base58 short id used in kudos

Package Exports

  • @kudos-protocol/short-id
  • @kudos-protocol/short-id/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kudos-protocol/short-id) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kudos Short ID

Overview

This library provides a base58 encoded UUID V1 which is 22 characters long. It's used to create a unique identifier for a Kudos transaction. Under the hood it's the standard UUID V1 which is base58 encoded.

Likely you won't want to use this directly, but it's used as part of other @kudos-protocol libraries.

Usage

import { shortID, shortIdFromUuid, uuidV1 } from '@kudos-protocol/short-id';

console.log(shortID()); // Jr9jnoTosc332G9gjcStZv