uuidv4

  • Version 6.2.13
  • Published
  • 17.4 kB
  • 2 dependencies
  • MIT license

Install

npm i uuidv4
yarn add uuidv4
pnpm add uuidv4

Overview

uuidv4 creates v4 UUIDs.

Index

Variables

variable jsonSchema

const jsonSchema: {
v4: { type: string; pattern: string };
v5: { type: string; pattern: string };
};

    variable regex

    const regex: { v4: RegExp; v5: RegExp };

      Functions

      function empty

      empty: () => string;

        function fromString

        fromString: (text: string, namespace?: string) => string;

          function isUuid

          isUuid: (value: string) => boolean;

            function uuid

            uuid: () => string;

              Package Files (1)

              Dependencies (2)

              Dev Dependencies (3)

              Peer Dependencies (0)

              No peer dependencies.

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/uuidv4.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/uuidv4)
              • HTML
                <a href="https://www.jsdocs.io/package/uuidv4"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>