{"_id":"vue3-uuid","_rev":"1-0316fa3070e57fd27e027e2e49e645b2","name":"vue3-uuid","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"vue3-uuid","version":"1.0.0","description":"Add UUID to Vue instance.","cdn":"dist/index.umd.min.js","main":"dist/index.js","unpkg":"dist/index.umd.min.js","types":"index.d.ts","module":"dist/index.esm.js","jsdelivr":"dist/index.umd.min.js","umd:main":"dist/index.umd.js","scripts":{"test":"ava","build":"bili index.js --format es,cjs,umd,umd-min --minimal --moduleName VueUUID","prepublishOnly":"npm run build && npm run test"},"repository":{"type":"git","url":"git+https://github.com/wang90/vue3-uuid.git"},"keywords":["vue3","vue3-uuid","uuid"],"author":{"name":"wang90"},"license":"MIT","bugs":{"url":"https://github.com/wang90/vue3-uuid/issues"},"homepage":"https://github.com/wang90/vue3-uuid#README","ava":{"require":["esm"]},"devDependencies":{"ava":"^3.8.2","bili":"^4.10.1","esm":"^3.2.25","vue":"^2.6.11"},"dependencies":{"@types/uuid":"^8.0.0","uuid":"^8.1.0"},"gitHead":"9436f8077a61de04204609829c459093bb819277","_id":"vue3-uuid@1.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-TyRCP6KgHHRjwWVI4Eyhd5+eZi9bspkohuXJGEQArtc5VMYKX938ridCff3NpqxPjdawqK+6AZ7rKh9AhT9Jtw==","shasum":"b76b04e81a5c99ad1153585ce84e946ea8562dd2","tarball":"https://registry.npmjs.org/vue3-uuid/-/vue3-uuid-1.0.0.tgz","fileCount":13,"unpackedSize":37986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwCc4CRA9TVsSAnZWagAA8hUP/10ZnoehGeMCtJuoMRI8\nvSLqTaCsa2ya6jLQp6WepBaRu267nkCd3D7cq5pK+C+L2YJ2KPErVLjBTgM3\nmvEm6vZrqJRqnWIaRsJOELwry3nGFtsR8o6RkLT2AlhOWRQih4ECBZS8d/Sc\n4yhsabqZjE9RrvhtOHaMT4265fyRFWWqwmjNSmBVhRHdf7ni9kr72bZ2QGZd\nd/c5dc5LSGCZocay12VMNQHZY8j41Nez0g9hxwZanDKxoT5XAEMAwplwxvoN\nN1xSdtDh1E83So89NyVHyLegr1w5HywSekmyA4zYype/lwGXsIwOv90XPOJp\nvRwWZupEF6SOESX8KvH77xwWWLTwRBWEXNyGVlfb/n0Y8IWynf6YHncw5Doo\nKbytaqo1bOt843YB1mEatOLGExTjjua12hp8GlXefjP3JvcXpzuycTyBmuUm\nfgpPKqYbgCUfX/R6RPZ+SySsghCm1QQkw4EDtxnToUaH/QdEnzbPn0boYd3n\nVzm3PnYyUTCGhyDW8w7wd5aMol2qeO0VIETFr0VAMwwhJiTuvR57y26w9RM5\n8tAEyX2gSY+KpWYiKdSLvVnZ5EU3LKhJ0aqvwTmWaf+niZhVBj0gB8B0Xt93\ntGrBWFrkz0VvYJhJm6oJo+a4eCv3ULQfCTQE3cbCohsNlpxKcPoChthBYx5Y\ngWOh\r\n=6li8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHKjESK9Lsce4Uc/Jv1kcpdwGjd09EuLZF1Z4MUW/N7wIgE+AzAeT0LMM7YUdylGUXT+l0G4g7LVo193KiinIZCFY="}]},"_npmUser":{"name":"wang90","email":"393210564@qq.com"},"directories":{},"maintainers":[{"name":"wang90","email":"393210564@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue3-uuid_1.0.0_1639982904742_0.010909171778837656"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-20T06:48:24.742Z","1.0.0":"2021-12-20T06:48:24.902Z","modified":"2022-05-23T21:27:16.391Z"},"maintainers":[{"name":"wang90","email":"393210564@qq.com"}],"description":"Add UUID to Vue instance.","homepage":"https://github.com/wang90/vue3-uuid#README","keywords":["vue3","vue3-uuid","uuid"],"repository":{"type":"git","url":"git+https://github.com/wang90/vue3-uuid.git"},"author":{"name":"wang90"},"bugs":{"url":"https://github.com/wang90/vue3-uuid/issues"},"license":"MIT","readme":"# Vue UUID\n\n\n## Background\n因为在使用 vue-uuid 在 vue3 项目中会报错，果断修改原仓库    \n\n[感谢🙏仓库原作者](https://github.com/VitorLuizC/vue-uuid)\n\nAdd UUID to Vue instance.\n\n\n## Install\n\nInstallation is very easy, you just need to install using NPM or Yarn.\n\n```sh\nnpm i vue3-uuid\n```\n\nVue's `use` method will do the trick adding to Vue.\n\n```js\nimport { createApp } from 'vue'\nimport App from './App.vue'\nimport UUID from \"vue3-uuid\";\nconst app = createApp(App)\napp.use(UUID)\n\n```\n\n## Usage\n\n```vue\n<template>\n  <div class=\"uuid-panel\">\n    <h3 class=\"uuid\">{{ UUID }}</h3>\n    <button\n      class=\"button\"\n      @click=\"choose\"\n    >Generate V1</button>\n    <button\n      class=\"button\"\n      @click=\"choose(3)\"\n    >Generate V3</button>\n    <button\n      class=\"button\"\n      @click=\"choose(4)\"\n    >Generate V4</button>\n    <button\n      class=\"button\"\n      @click=\"choose(5)\"\n    >Generate V5</button>\n  </div>\n</template>\n\n<script setup>\n  import { ref } from 'vue'\n  import { uuid } from 'vue-uuid';\n  const NAMESPACE = \"65f9af5d-f23f-4065-ac85-da725569fdcd\";\n\n  const UUID = ref(null);\n  const choose = ( type ) => {\n    if ( type === 3 ) {\n      UUID.value =  uuid.v3();\n    } else if ( type === 4) {\n      UUID.value = uuid.v4();\n    } else if ( type === 5 ) {\n      UUID.value = uuid.v5(\"Name 1\", NAMESPACE);\n    } else {\n       UNID.value = uuid.v1();\n    }\n  }\n</script>\n```\n","readmeFilename":"README.md"}