MCPcopy Index your code
hub / github.com/VitorLuizC/vue-uuid

github.com/VitorLuizC/vue-uuid @v3.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.0 ↗ · + Follow
4 symbols 11 edges 3 files 0 documented · 0% 1 cross-repo links updated 3y agov3.0.0 · 2022-02-10★ 741 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vue UUID

Add UUID to Vue instance.

Build Status

Install

Installation is very easy, you just need to install using NPM or Yarn.

npm i vue-uuid

Vue's use method will do the trick adding to Vue.

import { createApp } from "vue";
import withUUID from "vue-uuid";

const app = withUUID(
  createApp({
    // ...
  }),
);

Usage

After installation $uuid is available on instance, so you can use inside components template and script, like the example below.

<template>



    <h3 class="uuid">{{ uuid }}</h3>
    <button
      class="button"
      @click="uuid = $uuid.v1()"
    >Generate V1</button>
    <button
      class="button"
      @click="uuid = $uuid.v3()"
    >Generate V3</button>
    <button
      class="button"
      @click="uuid = $uuid.v4()"
    >Generate V4</button>
    <button
      class="button"
      @click="uuid = $uuid.v5("Name 1", NAMESPACE)"
    >Generate V5</button>



</template>

<script>
  import { uuid } from 'vue-uuid'; // uuid object is also exported to things
                                   // outside Vue instance.

  const NAMESPACE = "65f9af5d-f23f-4065-ac85-da725569fdcd";

  export default {
    data () {
      return {
        NAMESPACE,
        uuid: uuid.v1(),
        v1: this.$uuid.v1(),
        v3: this.$uuid.v3(),
        v4: this.$uuid.v4(),
        v5: this.$uuid.v5("Name 2", NAMESPACE)
      };
    }
  };
</script>

Extension points exported contracts — how you extend this code

UUID (Interface)
(no doc)
index.d.ts
ComponentCustomProperties (Interface)
(no doc)
index.d.ts

Core symbols most depended-on inside this repo

withUUID
called by 2
index.mjs
createApp
called by 2
test.mjs

Shape

Function 2
Interface 2

Languages

TypeScript100%

Modules by API surface

index.d.ts2 symbols
test.mjs1 symbols
index.mjs1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add vue-uuid \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact