{"componentChunkName":"component---src-templates-blog-post-js","path":"/nodejs/uuid/","result":{"data":{"site":{"siteMetadata":{"title":"아구몬","author":"[AGUMON]","siteUrl":"https://ljlm0402.netlify.com","comment":{"disqusShortName":"","utterances":"ljlm0402/tech-blog"},"sponsor":{"buyMeACoffeeId":""}}},"markdownRemark":{"id":"61bd3d92-90e6-5bf3-82fb-112c3b0461f5","excerpt":"💎 목차 설치를 하며 코드를 보며 생각 해보며 ⚙️ 설치를 하며 ⬆ 목차 😳 코드를 보며 ▸ Version 1 (timestamp) ▸ Version 3 (namespace) ▸ Version 4 (random) ▸ Version 5 (namespace…","html":"<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 200px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 100%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAArwAAAK8AFCrDSYAAAB5klEQVQ4y81US6uBURT1G81kbKIwERMkj4E8IuRVkokwNFLyKoUBUQYmhLzyKq+Jx7rtXd/N57qvuoO7aneOdc63zt7r7EOCP4bk/wve73f8JgjC+GPB2+32cv4jwd+W9Cj2SlhyuVwwm82wXC5xOp143mw2sdvtcDgcMBwOcTwesd/vRdl+KRgKhWA2mxGLxeB2u6HT6RCPx2G1WuFyuRCNRnmN9hKu1yvPaXwUp5DQqavVCpPJBOPxGIvFgrOdz+cYjUYclDXx2+0W6/X6Q1akIYiyh51Oh0sj9Pt9jm63y6KEXq+HwWCAdruN6XSKarWKZDKJTCbD1jyKsqDBYOBFQjgcRiQSYQsqlQpzDocD6XSauXK5DJlMxvuCwSDkcjl7LMqQNmazWSZJjPwi/wRBp9PJ68QVi0WoVCqcz2deMxqNfJjgLQuaTCbkcjkmE4kEi1osFjQaDeZ8Ph9SqRTsdjtKpRLUavW7lx6Ph78RCfr9fr5ZgkKhQD6fh9frhc1m4zKoxHq9Dq1Wi0KhwGW2Wi32WSqVvvtPPrIg9R99rFQq+UTCZrPhcoijjAnkM11OIBCARqOBXq9HrVYTX8pXz+izF/Jt29BEaFJhpE2vOOH3Y3OLGvu505/f6vNT+y7+/x/sG8uVyaRDqb+5AAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"logo\"\n        title=\"logo\"\n        src=\"/static/a4c167c79b0152273aeb9deb9d560e50/772e8/logo.png\"\n        srcset=\"/static/a4c167c79b0152273aeb9deb9d560e50/12f09/logo.png 148w,\n/static/a4c167c79b0152273aeb9deb9d560e50/772e8/logo.png 200w\"\n        sizes=\"(max-width: 200px) 100vw, 200px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<center><strong style=\"font-size: 20px;\">고유한 이름을 부여</strong>하기 위해 모듈</center>\n<h2 id=\"-목차\" style=\"position:relative;\"><a href=\"#-%EB%AA%A9%EC%B0%A8\" aria-label=\" 목차 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>💎 목차</strong></h2>\n<ul>\n<li><a href=\"#%EF%B8%8F-%EC%84%A4%EC%B9%98%EB%A5%BC-%ED%95%98%EB%A9%B0\">설치를 하며</a></li>\n<li><a href=\"#-%EC%BD%94%EB%93%9C%EB%A5%BC-%EB%B3%B4%EB%A9%B0\">코드를 보며</a></li>\n<li><a href=\"#-%EC%83%9D%EA%B0%81%ED%95%B4-%EB%B3%B4%EB%A9%B0\">생각 해보며</a></li>\n</ul>\n<h2 id=\"️-설치를-하며\" style=\"position:relative;\"><a href=\"#%EF%B8%8F-%EC%84%A4%EC%B9%98%EB%A5%BC-%ED%95%98%EB%A9%B0\" aria-label=\"️ 설치를 하며 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>⚙️ 설치를 하며</strong></h2>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"language-sh\"><code class=\"language-sh\">$ npm install uuid</code></pre></div>\n<br />\n<p><strong><a href=\"#-%EB%AA%A9%EC%B0%A8\">⬆ 목차</a></strong></p>\n<hr />\n<h2 id=\"-코드를-보며\" style=\"position:relative;\"><a href=\"#-%EC%BD%94%EB%93%9C%EB%A5%BC-%EB%B3%B4%EB%A9%B0\" aria-label=\" 코드를 보며 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>😳 코드를 보며</strong></h2>\n<h3 id=\"▸-version-1-timestamp\" style=\"position:relative;\"><a href=\"#%E2%96%B8-version-1-timestamp\" aria-label=\"▸ version 1 timestamp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>▸ Version 1 (timestamp)</strong></h3>\n<div class=\"gatsby-highlight\" data-language=\"js\"><pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">const</span> uuidv1 <span class=\"token operator\">=</span> <span class=\"token function\">require</span><span class=\"token punctuation\">(</span><span class=\"token string\">'uuid/v1'</span><span class=\"token punctuation\">)</span>\n\n<span class=\"token function\">uuidv1</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ 2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d</span></code></pre></div>\n<br />\n<hr />\n<h3 id=\"▸-version-3-namespace\" style=\"position:relative;\"><a href=\"#%E2%96%B8-version-3-namespace\" aria-label=\"▸ version 3 namespace permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>▸ Version 3 (namespace)</strong></h3>\n<div class=\"gatsby-highlight\" data-language=\"js\"><pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">const</span> uuidv3 <span class=\"token operator\">=</span> <span class=\"token function\">require</span><span class=\"token punctuation\">(</span><span class=\"token string\">'uuid/v3'</span><span class=\"token punctuation\">)</span>\n\n<span class=\"token comment\">// DNS namespace (for domain names)</span>\n<span class=\"token function\">uuidv3</span><span class=\"token punctuation\">(</span><span class=\"token string\">'hello.example.com'</span><span class=\"token punctuation\">,</span> uuidv3<span class=\"token punctuation\">.</span><span class=\"token constant\">DNS</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ 9125a8dc-52ee-365b-a5aa-81b0b3681cf6</span>\n\n<span class=\"token comment\">// URL namespace (for, well, URLs)</span>\n<span class=\"token function\">uuidv3</span><span class=\"token punctuation\">(</span><span class=\"token string\">'http://example.com/hello'</span><span class=\"token punctuation\">,</span> uuidv3<span class=\"token punctuation\">.</span><span class=\"token constant\">URL</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ c6235813-3ba4-3801-ae84-e0a6ebb7d138</span></code></pre></div>\n<br />\n<hr />\n<h3 id=\"▸-version-4-random\" style=\"position:relative;\"><a href=\"#%E2%96%B8-version-4-random\" aria-label=\"▸ version 4 random permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>▸ Version 4 (random)</strong></h3>\n<div class=\"gatsby-highlight\" data-language=\"js\"><pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">const</span> uuidv4 <span class=\"token operator\">=</span> <span class=\"token function\">require</span><span class=\"token punctuation\">(</span><span class=\"token string\">'uuid/v4'</span><span class=\"token punctuation\">)</span>\n\n<span class=\"token function\">uuidv4</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ 1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed</span></code></pre></div>\n<br />\n<hr />\n<h3 id=\"▸-version-5-namespace\" style=\"position:relative;\"><a href=\"#%E2%96%B8-version-5-namespace\" aria-label=\"▸ version 5 namespace permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>▸ Version 5 (namespace)</strong></h3>\n<div class=\"gatsby-highlight\" data-language=\"js\"><pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">const</span> uuidv5 <span class=\"token operator\">=</span> <span class=\"token function\">require</span><span class=\"token punctuation\">(</span><span class=\"token string\">'uuid/v5'</span><span class=\"token punctuation\">)</span>\n\n<span class=\"token comment\">// DNS namespace (for domain names)</span>\n<span class=\"token function\">uuidv5</span><span class=\"token punctuation\">(</span><span class=\"token string\">'hello.example.com'</span><span class=\"token punctuation\">,</span> uuidv5<span class=\"token punctuation\">.</span><span class=\"token constant\">DNS</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ fdda765f-fc57-5604-a269-52a7df8164ec</span>\n\n<span class=\"token comment\">// URL namespace (for, well, URLs)</span>\n<span class=\"token function\">uuidv5</span><span class=\"token punctuation\">(</span><span class=\"token string\">'http://example.com/hello'</span><span class=\"token punctuation\">,</span> uuidv5<span class=\"token punctuation\">.</span><span class=\"token constant\">URL</span><span class=\"token punctuation\">)</span> <span class=\"token comment\">// ⇨ 3bbcee75-cecc-5b56-8031-b6641c1ed1f1</span></code></pre></div>\n<br />\n<p><strong><a href=\"#-%EB%AA%A9%EC%B0%A8\">⬆ 목차</a></strong></p>\n<hr />\n<h2 id=\"-생각해-보며\" style=\"position:relative;\"><a href=\"#-%EC%83%9D%EA%B0%81%ED%95%B4-%EB%B3%B4%EB%A9%B0\" aria-label=\" 생각해 보며 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>🤔 생각해 보며</strong></h2>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 590px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 48.64864864864865%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAABqUlEQVQoz53SXYpaMRQH8LsBBy31SrnfX8lNcj8cmWE6a9IddMCvBbgYX91Ce7U7ENQXfVAEBRX+zY0iw7QPbR9+nJwk55CEaMfjEefzGafTSTqr8b+6XC44HA7Y7XbQ5vM5ih/fpQJFUWA6nWJWms3+yk+prFssFtjv99C+vb3B9CK8fH1GM0/BuAChMfwgkMJbfC+8CyRCKRqNBkajkbql1m638Un/AvH0iubzC2KRIvI9iNAHlzIaIiUhkigAl5ia99RaHHhgJELl4QG9XlddW+t02tA/18F5BpI0IZqPSNIErVaOLM/AaQRKCagsZHJMolDmFIQQFcv5Wq0mG/auDcsT6rqOmCcgjINljxCyYZ4LBKkAjSP4goGKGFnGEVGGWO4hIgPLW6pxtVp917DTUQ05YfACWUw5nDCGG1N1oiRhCMMIpmkqlmXBMg2pzA14rvv7Cev1OnzPh2U7sF0ZHQ+W58KTfPlOtuPAMIw/sm0blUoF3e7tDcfjMQaDvjS46vevuYz9m/vaB8Ph8G4ymVz/4Xq9xnK5VP/of61WK2w2G2y3W/wChQTW6VHjvlMAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"1\"\n        title=\"1\"\n        src=\"/static/99d30197f1d96857fba8d0ea728dcf30/fcda8/1.png\"\n        srcset=\"/static/99d30197f1d96857fba8d0ea728dcf30/12f09/1.png 148w,\n/static/99d30197f1d96857fba8d0ea728dcf30/e4a3f/1.png 295w,\n/static/99d30197f1d96857fba8d0ea728dcf30/fcda8/1.png 590w,\n/static/99d30197f1d96857fba8d0ea728dcf30/efc66/1.png 885w,\n/static/99d30197f1d96857fba8d0ea728dcf30/c83ae/1.png 1180w,\n/static/99d30197f1d96857fba8d0ea728dcf30/52ab5/1.png 1420w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span>\n<br /></p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 590px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 109.45945945945948%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWCAYAAADAQbwGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC80lEQVQ4y61UyU4bQRD1FQWzHDA4nn3p2T3ejRIpfAwIjkg4hkghR/4N23fgCAcQcEGCOy+v2yZsJiLLSE9V3dNdXa/qdRfu7u7wP777+3vc3t6icHZ2hu8/9tHrf8Xebh970vb7yt+l/03ZPnq93jPs7OwoSH97exsHBwe4vLxEYTQYQIsC6LGHKPRRMQ34tg7X0uCYFfiOgdLSEj58mMXc3BxmZ4soFouYn59XWFhYwMzMDKIowsnJCQrDwwGSbhvZagur3SZq1RT1WoZWPUOexsrWsgTdZo44CNS4mWewLBu2bcNxHGiahm63i6OjIwZkhmGjRlRR56YoDuEGgicG8D0PobTCV/Nyc0jr+Z4Kouk6DMNEuVxGq9XC8fExCgMGjHliWk2QhgKebZGyRbomYt8ldROh5yJwHVgsh3BsNe9zHHgOXGa58jSgzDCpM0PSC4UHhwFcbnIsBpbWHlsJi4d4tMId/5e+Tfssw+FwSFoRgixGTtpeEiFJQgjSzlgvwazTnNnnqaIcc52cNwyDtEnZnEI5reVIuKleS+GSilxsSnCx8s2XvqF8Y7Km/JKyyKtwebIQnjpVFlvZSeHHY20yp0PXH2G+znCIRpogDzzkkSAChQZpVyXdwEdGfcqx/B+zwxGbIiH/xUxCOBY67fZYNgPqsN5qUDJVRJSHasqTRsji/xq7465KyrqSzBuUw4QNWW2j3mlQrNYj1Qm9xxKM/YdgUymPRiM2wlXXbu1LB1XeFItZPRT9LbydIQPKG+FQh821T5RLoDo83shsnmyehtcBqUMhBD5WKkh4BT+vdZGx478L8q6AWkVDIFzUqMcwCNUNeE/Q6QF9Hy477EchAkpB141/yzDLMthSEnwEPEI2RS58D+TaCsvV6XQmwj48hM3sKrZJzRkor6xgqVRC6Z1YXl7G4uKiSkoJW76y8inf2NjA5ubmH2Nrawvr6+vY39/H6ekpCjc3N7i6usL5+TkuLi6U/RtcX19DxvoJ+V48QK8SYHQAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"2\"\n        title=\"2\"\n        src=\"/static/9c9454f39b54516d4f0aa759f6c96401/fcda8/2.png\"\n        srcset=\"/static/9c9454f39b54516d4f0aa759f6c96401/12f09/2.png 148w,\n/static/9c9454f39b54516d4f0aa759f6c96401/e4a3f/2.png 295w,\n/static/9c9454f39b54516d4f0aa759f6c96401/fcda8/2.png 590w,\n/static/9c9454f39b54516d4f0aa759f6c96401/efc66/2.png 885w,\n/static/9c9454f39b54516d4f0aa759f6c96401/c83ae/2.png 1180w,\n/static/9c9454f39b54516d4f0aa759f6c96401/56caf/2.png 1712w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span>\n<br /></p>\n<p><code class=\"language-text\">uuid</code> 사용하면 유니크 성은 보장되지만 긴 문자열로 사용이 꺼려지는 경우도 있다.</p>\n<p>그러므로, 모듈을 사용하지 않고 유니크한 값을 만드는 소스를 몇가지 만들어보았다.</p>\n<p><code class=\"language-text\">new Date</code>, <code class=\"language-text\">Math.random</code>을 사용했으며, 실제 서비스에서도 사용해도 전혀 손색이 없다.</p>\n<p>해당 소스보다 좋은 소스를 생각해보고 공유도 함께해주시면 감사합니다.</p>\n<br />\n<p><strong><a href=\"#-%EB%AA%A9%EC%B0%A8\">⬆ 목차</a></strong></p>\n<hr />\n<br />\n<blockquote>\n<p>출처</p>\n<p><a href=\"https://github.com/bynodejs/uuid\" target=\"_blank\">GitHub > uuid</a></p>\n</blockquote>\n<h1 id=\"여러분의-댓글이-큰힘이-됩니다-๑̀ㅂ́و✧\" style=\"position:relative;\"><a href=\"#%EC%97%AC%EB%9F%AC%EB%B6%84%EC%9D%98-%EB%8C%93%EA%B8%80%EC%9D%B4-%ED%81%B0%ED%9E%98%EC%9D%B4-%EB%90%A9%EB%8B%88%EB%8B%A4-%E0%B9%91%CC%80%E3%85%82%CC%81%D9%88%E2%9C%A7\" aria-label=\"여러분의 댓글이 큰힘이 됩니다 ๑̀ㅂ́و✧ permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>여러분의 댓글이 큰힘이 됩니다. (๑•̀ㅂ•́)و✧</h1>","frontmatter":{"title":" 범용 고유 식별자 ⚠️ ▻ uuid ","date":"October 04, 2019"}}},"pageContext":{"slug":"/nodejs/uuid/","previous":{"fields":{"slug":"/etc/chrome/"},"frontmatter":{"title":" 구글 크롬 🌐 ▻ EXTENSIONS ","category":"Chrome"}},"next":{"fields":{"slug":"/nodejs/jest.1/"},"frontmatter":{"title":" 테스트 프레임워크 🛠 ▻ Jest 1탄 ","category":"Node Js"}}}},"staticQueryHashes":["3128451518","3956431471"]}