Functionscru128String

Generates a new SCRU128 ID encoded in a string using the global generator.

Use this function to quickly get a new SCRU128 ID as a string.

import { scru128String } from "scru128";

const x = scru128String();
console.log(x);
  • Returns string

    The 25-digit canonical string representation.