{"_id":"@bloodred17/uuidv4","_rev":"1-541bbce92b5adb4f0f5c4a3d27e0676a","name":"@bloodred17/uuidv4","dist-tags":{"latest":"6.3.14"},"versions":{"6.3.13":{"name":"@bloodred17/uuidv4","version":"6.3.13","description":"uuidv4 creates v4 UUIDs.","contributors":[{"name":"Ankur Dutta","email":"ankur.611@gmail.com"}],"private":false,"main":"build/lib/uuidv4.js","types":"build/lib/uuidv4.d.ts","dependencies":{"@types/uuid":"8.3.4"},"devDependencies":{"assertthat":"6.5.2","roboter":"13.1.0","semantic-release-configuration":"2.0.7"},"scripts":{"analyze":"npx roboter","build":"npx roboter build"},"repository":{"type":"git","url":"git://github.com/bloodred17/uuidv4.git"},"keywords":["guid","uuid"],"license":"MIT","gitHead":"97fb70785a6b538d1ad1c2d14f372b7ddb65a9c4","bugs":{"url":"https://github.com/bloodred17/uuidv4/issues"},"homepage":"https://github.com/bloodred17/uuidv4#readme","_id":"@bloodred17/uuidv4@6.3.13","_nodeVersion":"16.14.0","_npmVersion":"7.5.6","dist":{"integrity":"sha512-bNkM3beUpWRyVPX2WmdYCvCrCQ0qjvbSYiRT/NTDmOf5BsglwNVRPw35vK3Ch/pfuaGYyZFtEqEjyBZS9S2d7w==","shasum":"ba9fc67c41c2d82bc925b5d5e8d4e21ec1da04a1","tarball":"https://registry.npmjs.org/@bloodred17/uuidv4/-/uuidv4-6.3.13.tgz","fileCount":12,"unpackedSize":16335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNKkQUz/kvbLZhm/2gNKqIzU05MVZOn4ThGfGNdBHIsAiEAlxM7/oEWv/g5ZEoDrnZTmZAZH2dEGnOtawvUS+FWLOI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1YhsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr89Q//SWOEUC4fqU6UFakPPY2x6v9EfItIPkuNplqkSJ/fNacFNkSL\r\nKAWCwggTTLjCPiW9yMUjL6lD/yZRtbf9GZW82yVikmLjMAXieF/0d+xXKN/+\r\nluyaz4G3C4vmMzaMRfeXh0pVWitGGHtx3O4ZdfWzRmut1MPQz6wVmdxBueyZ\r\npLwrLmSlGIeJVHKmwYp2yVZXFvXZuiY1DcAEqBEikuIxqzaQp/oEez37inyr\r\ntdlFZI+wU3pG4vh+P8iVvXXPNvRvUQJq58su3CivpyRwjaR19w0hPyMqF0vM\r\nV5JwUeXP3mSRzKmm/ft4m8Ld++eQ2ly7uiD2iV+l8l9FO8B7fo3bp6nbDuZg\r\nWaq7tybXAVd+RRDDtq/LppEtdkYhWFceqORXHZgycMCGjf1w9Pl8m6/AgE4e\r\nbefrQa0hbN0llQ2ZdAJzVikI1/vEDdUlLn9yVBcoSmyU+4nn/4Qy1A/nL6Tm\r\nraHS14SWPjGfzqlVbTWxpMsVGWUfaWDzdGEPF8ipV1ucZHpkaY8nM+sNpMPO\r\nExf6dasQtY8+RvuPgzarekTu2W3YTeErlh/6NpDFYDfeUK1FpFDPBts3Jf9i\r\n5EQAuDoJRsyz+N56XSloFATSpA49ik5IClNLvYYwdqaTE4Xa2RZ3uPmDSSqA\r\nXDc4FNPq6AT9B27gZk+HGwypX8uTKcUXBPM=\r\n=PCMj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bloodred17","email":"ankur.611@gmail.com"},"directories":{},"maintainers":[{"name":"bloodred17","email":"ankur.611@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uuidv4_6.3.13_1658161260590_0.007495895510267969"},"_hasShrinkwrap":false},"6.3.14":{"name":"@bloodred17/uuidv4","version":"6.3.14","description":"uuidv4 creates v4 UUIDs.","contributors":[{"name":"Ankur Dutta","email":"ankur.611@gmail.com"}],"private":false,"main":"build/lib/uuidv4.js","types":"build/lib/uuidv4.d.ts","dependencies":{"@types/uuid":"8.3.4","uuid":"^8.3.2"},"devDependencies":{"assertthat":"6.5.2","roboter":"13.1.0","semantic-release-configuration":"2.0.7"},"scripts":{"analyze":"npx roboter","build":"npx roboter build"},"repository":{"type":"git","url":"git://github.com/bloodred17/uuidv4.git"},"keywords":["guid","uuid"],"license":"MIT","gitHead":"05d82d5980578c16873db54b2f071eba43a839ca","bugs":{"url":"https://github.com/bloodred17/uuidv4/issues"},"homepage":"https://github.com/bloodred17/uuidv4#readme","_id":"@bloodred17/uuidv4@6.3.14","_nodeVersion":"16.14.0","_npmVersion":"7.5.6","dist":{"integrity":"sha512-G3wK1plCAArscvrAtz7GqjkvBrEHogusZc0wHHjUNsCHIceQXSgmkHZ72LpcLs8PGhMCQun1Yl1Sb3t7Z6gBwA==","shasum":"1ba62d7e18dc54d4477852e159dd481912434f53","tarball":"https://registry.npmjs.org/@bloodred17/uuidv4/-/uuidv4-6.3.14.tgz","fileCount":12,"unpackedSize":16357,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv0aWQ4G6VgGDPLNIt1ZeeH5jKrOKQLGchjAJGTsqxowIgB5e4JAIct/+mtZ1iblJrP2dRCv7w3VEdhyWZa6uxf4s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1YsEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo01g//cEiXu6Zb/IdoAOT+/wtLph08SnSiAC0qrnN+tmajf30w+X8K\r\nZTp/8GDNJip7p9UQfvokofMJ7mBc4Yh/CJ8f7b5aq4UFTUyAsu4SnySOsdJu\r\n3iOoFGH8aXjKF+C1Izr9Ja18b/uvSjyM4iw+1raWGXsNvtanmaqW4tevjdGP\r\n2+uKKICovdp/pU46gut1c90UnPVyXAapK/RVUQfLIKZ/sVlMq8+5W68Tsw70\r\nuBML6zX6JGbH3oVpIAc+iK5nB+vi53bPF7RXT9irFbt04dkXqDFXgF9gW31j\r\nEXofSNdGn9v4ycz1jJ1YIpdfK1r8wMNIwrS0A8VLgXzVLXI0VBrBPeIlj6st\r\n5Uk3cXnIu0D+e42cLoZmcJb6uvjImZii1H9Z4PYODpHsBtmbfTSDu1drR5I5\r\ndXvnSvF5yO3DylXfpHcJkzmdb5ePQWQQ46lFPsRZLzZjTSERUd0avmJRUGFX\r\nDF+aVR2iyUlqtrgkATBeKhqJns/+UAtmkxqZD+uKggcEqv8DerO/5/DeMN+Y\r\n693vPqQuiG34L9HXCY1rlsQRnmXqnbosccKxNv4SKrvNVXFDNGTC+2V+XSpq\r\n0Eo0/qyPNVX/3kV5AmiQhghVpkltQFC3lh42MOghDVbPwgaw87UxZIXfRw3Z\r\n+/D1OvQ220Ia93/JGQaRLb4katTujc+ksfg=\r\n=4GaM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bloodred17","email":"ankur.611@gmail.com"},"directories":{},"maintainers":[{"name":"bloodred17","email":"ankur.611@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uuidv4_6.3.14_1658161924708_0.06832281012728703"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-18T16:21:00.487Z","6.3.13":"2022-07-18T16:21:00.785Z","modified":"2022-07-18T16:32:04.957Z","6.3.14":"2022-07-18T16:32:04.862Z"},"maintainers":[{"name":"bloodred17","email":"ankur.611@gmail.com"}],"description":"uuidv4 creates v4 UUIDs.","homepage":"https://github.com/bloodred17/uuidv4#readme","keywords":["guid","uuid"],"repository":{"type":"git","url":"git://github.com/bloodred17/uuidv4.git"},"contributors":[{"name":"Ankur Dutta","email":"ankur.611@gmail.com"}],"bugs":{"url":"https://github.com/bloodred17/uuidv4/issues"},"license":"MIT","readme":"# uuidv4\n\nuuidv4 creates v4 UUIDs.\n\n## Status\n\n| Category         | Status                                                                                              |\n| ---------------- | --------------------------------------------------------------------------------------------------- |\n| Version          | [![npm](https://img.shields.io/npm/v/uuidv4)](https://www.npmjs.com/package/uuidv4)                 |\n| Dependencies     | ![David](https://img.shields.io/david/thenativeweb/uuidv4)                                          |\n| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/uuidv4)                                      |\n| Build            | ![GitHub Actions](https://github.com/thenativeweb/uuidv4/workflows/Release/badge.svg?branch=main) |\n| License          | ![GitHub](https://img.shields.io/github/license/thenativeweb/uuidv4)                                |\n\n## Please note\n\nThis module will be deprecated in the future in favour of module [uuid](https://www.npmjs.com/package/uuid). Most of the functionality of this module is already included in `uuid` since version `8.3.0`, so most of the functions of this module have already been marked as deprecated.\n\n## Installation\n\n```shell\n$ npm install uuidv4\n```\n\n## Quick start\n\nFirst you need to integrate uuidv4 into your project by using the `require` function:\n\n```javascript\nconst { uuid } = require('uuidv4');\n```\n\nIf you use TypeScript, use the following code instead:\n\n```typescript\nimport { uuid } from 'uuidv4';\n```\n\nThen you can create UUIDs. To do so simply call the `uuid` function:\n\n```javascript\nconsole.log(uuid());\n// => '11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000'\n```\n\n### Verifying a UUID\n\nTo verify whether a given value is a UUID, use the `isUuid` function:\n\n```javascript\nimport { isUuid } from 'uuidv4';\n\nconsole.log(isUuid('75442486-0878-440c-9db1-a7006c25a39f'));\n// => true\n```\n\n_Please note that the `isUuid` function returns `true` for both, `v4` and `v5` UUIDs. In addition, `isUuid` returns `true` for `empty()`._\n\n#### Using a regular expression\n\nIf you want to perform the verification on your own using a regular expression, use the `regex` property, and access its `v4` or `v5` property, depending on what you need:\n\n```javascript\nimport { regex } from 'uuidv4';\n\nconsole.log(regex.v4);\nconsole.log(regex.v5);\n```\n\n_Please note that the regular expressions also consider `empty()` to be a valid UUID._\n\n#### Using a JSON schema\n\nIf you want to perform the verification on your own using a JSON schema, use the `jsonSchema` property, and access its `v4` or `v5` property, depending on what you need:\n\n```javascript\nimport { jsonSchema } from 'uuidv4';\n\nconsole.log(jsonSchema.v4);\nconsole.log(jsonSchema.v5);\n```\n\n_Please note that the JSON schemas also consider `empty()` to be a valid UUID._\n\n### Getting a UUID from a string\n\nFrom time to time you need an identifier that looks like a UUID, but is actually inferred from a string. For that, use the `fromString` function, which returns a UUID `v5`:\n\n```javascript\nimport { fromString } from 'uuidv4';\n\nconsole.log(fromString('the native web'));\n// => 'cdb63720-9628-5ef6-bbca-2e5ce6094f3c'\n```\n\nBy default, the `fromString` function uses a pre-configured namespace. If you want to use your own namespace, provide a UUID as second parameter:\n\n```javascript\nimport { fromString } from 'uuidv4';\n\nconsole.log(fromString('the native web', '004aadf4-8e1a-4450-905b-6039179f52da'));\n// => 'b1c4a89e-4905-5e3c-b57f-dc92627d011e'\n```\n\n### Getting the empty UUID\n\nIf you need a UUID that consists only of zeros, use the `empty` function:\n\n```javascript\nimport { empty } from 'uuidv4';\n\nconsole.log(empty());\n// => '00000000-0000-0000-0000-000000000000'\n```\n\n## Running quality assurance\n\nTo run quality assurance for this module use [roboter](https://www.npmjs.com/package/roboter):\n\n```shell\n$ npx roboter\n```\n","readmeFilename":"README.md"}