2.0.3 • Published 3 years ago

uuid4 v2.0.3

Weekly downloads
69,769
License
ISC
Repository
github
Last release
3 years ago

uuid4

A Node.js module for generating and validation V4 UUIDs

NOTE: as of Version 2, legacy browsers are no longer supported, you can keep using 1.x if you need to support modern and legacy browsers.

Install

$ npm install uuid4

Usage

import uuid4 from "uuid4";

// Generate a new UUID
var id = uuid4();

// Validate a UUID as proper V4 format (case-insensitive)
uuid4.valid(id); // true

Direct in Browser or Deno

import uuid4 from 'https://cdn.jsdelivr.net/gh/tracker1/node-uuid4/browser.mjs';

// or

const { default: uuid4 } = await import('https://cdn.jsdelivr.net/gh/tracker1/node-uuid4/browser.mjs')

Deno

Use the canonical implementation instead.

import { v4 as uuid4 } from "https://deno.land/std/uuid/mod.ts";

const id = uuid4.generate();

console.log(id);
console.log(uuid4.validate(id));

License

ISC License

adcharity-remarkable-apigusto-analyticssmoothy-core-testcms-keystonereact-admin-cng-drum@kc_toorak/auth-sdkweb-hook-test-lambdabotvoxrepl-database@everything-registry/sub-chunk-3034chat-bot-v1xbox-webapistability-clientstability-client-maskstability-tstestlogintestlogin1testlogin2testlogin3testlogin4vj-testing-toolkitv2-stability-clientjson-server-apikasa_controlkable-nodekahooteerilp-plugin-payment-channel-frameworkilp-plugin-settlement-adapterilp-plugin-testsilp-plugin-virtualincumquehot-wallet-sdkhtc-test-pussyfriendsherrtopi-testhomebridge-skybellhomebridge-frigidaire-dehumidifierlhisp-business-devlhisp-businesslive-delphilimacharliemadloginleapbrains-chat-messagingkuky.comkonect-api-test10konect-api-test11konect-api-test12konect-api-test13konect-api-test14konect-api-test15konect-api-test6konect-api-test7konect-api-test8meos_design@wardrobe/securitybundle@wardrobe/wardrobe@whityha/toast@weibin.zheng/vue-grid-layout@vuer-ai/vuer@threefold/grid_client@threefold2/grid_client@threefold/rmb_peer_client@universaldevices/pg3@vnejs/plugins.core.vendors@xapp/stentor-service-dynamo@xapp/stentor-serviceairswap.jsaigx-test-sdkapi-blueprint-to-postmanascendo-aiaqfr.network.clientfowlerframes-simulatorgb-studio-clidynamo-rest-wrapper-optimizerep_hbp_collaboratoryep_hbp_collaboratory_autherised-microserviceepsagonepsagon-frameworksemail-notifiereventstore-ts-clientethereum-dex-prices-serviceevent-sidecarflip.chat.webfive-bells-connectorfive-bells-pathfindfive-bells-traderfive-bells-visualizationcomplex-loaderchamberlibcentral-fraud-sharingcluster-messagescluster_communicatecloud-app-loggercodex.docsdeplan-clientdev-classesbackend-base-nodebig-cliautocreatetomorokopi
2.0.3

3 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

11 years ago