Skip to content
Myr

README.ko.md

This file

Path

README.ko.md

409 lines · 15.3 KiB · Markdown

Last changed by

landed by oscabrielc0d01e3

History of this file

Take it

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 1–5why, one step back
1# Nano ID
23<img src="https://ai.github.io/nanoid/logo.svg" align="right"4 alt="Nano ID logo by Anton Lovchikov" width="180" height="94">5

docs: add Arabic README translation (#556)Mahmoud Hamdybefore adoptiondc629c5

line 6why, one step back
6[English](./README.md) | [日本語](./README.ja.md) | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md) | [Bahasa Indonesia](./README.id-ID.md) | **한국어** | [العربية](./README.ar.md)

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 7–12why, one step back
7
8JavaScript를 위한 가볍고 안전하며 URL 친화적인 고유 String ID 생성기910> “대단한 레벨의 무의미한 완벽주의,11> 경의를 표하지 않을 수 없습니다”12

Reduce Nano ID size to 117 bytes (#613)Alexander Bayandinbefore adoption05057d8

line 13why, one step back
13- **가볍습니다.** 117 bytes (minified 및 brotli 적용 후). 다른 의존성이 없습니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 14why, one step back
14 [Size Limit] 의 기능으로 컨트롤합니다.

Port amazing nope-id optimizations (#602)Andrey Sitnikbefore adoptionb1bb75f

line 15why, one step back
15- **빠릅니다.** 네이티브 `crypto.randomUUID()` 보다 50% 더 빠릅니다.

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 16–17why, one step back
16- **안전합니다.** 하드웨어의 랜덤 생성기를 사용합니다. 클러스터에서 사용할 수 있습니다.
17- **짧은 ID를 생성합니다.** UUID와는 다르게 대소문자를 모두 사용하여 키를 생성하므로, 36 byte를 차지하는 UUID와 다르게 21 byte만으로도 고유 아이디를 생성할 수 있습니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 18why, one step back
18 So ID size was reduced from 36 to 21 symbols.

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 19why, one step back
19- **이식이 쉽습니다.** Nano ID 는 20개 이상의 언어로 포팅되었습니다 [다른 언어들](#다른-언어들).

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 20–21why, one step back
20
21```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 22–23why, one step back
22import { nanoid } from "nanoid";
23model.id = nanoid(); //=> "V1StGXR8_Z5jdHi6B-myT"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 24–27why, one step back
24```
2526---27

Update EM bannerAndrey Sitnikbefore adoptionb49a237

line 28why, one step back
28<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Nano ID는 <b><a href="https://evilmartians.com/">Evil Martians</a></b>가 만들었습니다. 저희는 <b>개발자 도구, AI, 사이버 보안 스타트업</b>을 위한 미국의 디자인 및 엔지니어링 컨설팅 회사입니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 29–31why, one step back
29
30---31

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 32why, one step back
32[Size Limit]: https://github.com/ai/size-limit

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 33–44why, one step back
33
34## 목차3536- [목차](#목차)37- [UUID와 비교](#uuid와-비교)38- [벤치마크](#벤치마크)39- [보안](#보안)40- [설치](#설치)41 - [CDN](#cdn)42- [API](#api)43 - [사용자 커스텀 문자열](#사용자-커스텀-문자열)44 - [사용자 지정 랜덤 바이트 생성기](#사용자-지정-랜덤-바이트-생성기)

Update docsAndrey Sitnikbefore adoptionc0779bd

line 45why, one step back
45 - [Non-Secure](#non-secure)

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 46–66why, one step back
46- [사용법](#사용법)
47 - [React](#react)48 - [React Native](#react-native)49 - [PouchDB 및 CouchDB](#pouchdb-및-couchdb)50 - [CLI](#cli)51 - [TypeScript](#typescript)52 - [다른 언어들](#다른-언어들)53- [도구](#도구)5455## UUID와 비교5657Nano ID 는 (랜덤 기반의) UUID v4와 비교할 수 있습니다.58아이디로 생성되는 랜덤 비트의 수가 유사하여59(Nano ID는 126개, UUID는 122개), 동일한 아이디가 생성될 수 있는 충돌 확률도 비슷합니다:6061> 10억 분의 1의 확률로 충돌이 발생하기 위해서는62> 103조 번의 v4 ID가 생성되어야 합니다.6364Nano ID와 UUID v4에는 두 가지의 주요한 차이점이 있습니다:65661. Nano ID는 대문자를 사용합니다. 그래서 유사한 개수의 랜덤 값을 36개가 아닌 21개의 문자로 나타낼 수 있습니다.

Port amazing nope-id optimizations (#602)Andrey Sitnikbefore adoptionb1bb75f

line 67why, one step back
672. Nano ID는 `crypto.randomUUID` 및 `uuid/v4` 보다 빠릅니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 68–72why, one step back
68
69## 벤치마크7071```rust72$ node ./test/benchmark.js

Port amazing nope-id optimizations (#602)Andrey Sitnikbefore adoptionb1bb75f

lines 73–83why, one step back
73nope-id 20,386,830 ops/sec
74nanoid 20,434,827 ops/sec75customAlphabet 20,544,476 ops/sec76crypto.randomUUID 12,865,759 ops/sec77uuid v4 7,930,104 ops/sec78@napi-rs/uuid 5,573,171 ops/sec79uid/secure 6,308,267 ops/sec80@lukeed/uuid 5,278,597 ops/sec81nanoid for browser 311,497 ops/sec82secure-random-string 301,667 ops/sec83uid-safe.sync 297,815 ops/sec

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 84–85why, one step back
84
85Non-secure:

Port amazing nope-id optimizations (#602)Andrey Sitnikbefore adoptionb1bb75f

lines 86–88why, one step back
86uid 20,286,757 ops/sec
87nanoid/non-secure 2,397,594 ops/sec88rndm 2,445,462 ops/sec

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 89–92why, one step back
89```
9091## 보안92

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 93–94why, one step back
93_랜덤 생성기에 대한 설명은 다음 기사를 참고하세요:
94[Secure random values (in Node.js)]_

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 95why, one step back
95

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 96why, one step back
96- **예측불가성.** 안전하지 않은 `Math.random()`를 사용하는 대신, Nano ID는

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 97–98why, one step back
97 Node.js에서 제공하는 `crypto` 모듈과 브라우저의 Web Crypto API를 사용합니다.
98 이 모듈들은 예측이 불가능한 하드웨어 레벨의 랜덤 생성기입니다.

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 99why, one step back
99- **균일성.** `random % alphabet` 는 랜덤 아이디 생성기를 만들때 흔히들 하는 실수입니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 100–106why, one step back
100 이 경우 분포(수학)가 일정하지 않게 되며, 일부 기호들은 다른 기호들보다 사용될 확률이 낮아집니다.
101 이로 인해 브루트포스를 사용한 시도의 횟수를 줄일 수 있는 결과를 가져옵니다.102 Nano ID는 [이보다 더 좋은 알고리즘]을 사용하며, 균일성 테스트를 수행하였습니다.103104 <img src="img/distribution.png" alt="Nano ID uniformity"105 width="340" height="135">106

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 107–108why, one step back
107- **문서화:** Nano ID의 모든것이 코드에 문서화되어있습니다. [소스 코드]에서 코멘트를 확인하세요.
108- **취약점:** 보안 취약점에 대한 리포트는 아래 링크를 사용해주세요.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 109–112why, one step back
109 [Tidelift security contact](https://tidelift.com/security).
110 Tidelift에서 취약점에 대한 수정 및 알림등을 도와줄 수 있습니다.111112[Secure random values (in Node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 113–114why, one step back
113[이보다 더 좋은 알고리즘]: https://github.com/ai/nanoid/blob/main/index.js
114[소스 코드]: https://github.com/ai/nanoid/blob/main/index.js

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 115–127why, one step back
115
116## 설치117118```bash119npm install nanoid120```121122### CDN123124빠른 적용을 위해 CDN에서 Nano ID를 가져올 수 있습니다.125하지만 로딩 성능이 늦어지므로 프로덕션에서는 사용하는 것을 추천하지 않습니다.126127```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 128why, one step back
128import { nanoid } from "https://cdn.jsdelivr.net/npm/nanoid/nanoid.js";

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 129–136why, one step back
129```
130131## API132133기본적으로 Nano ID는 URL에 친화적인 기호들을 사용하여 21자리의 랜덤한 문자열을 생성합니다.134(이들은 UUID v4와 유사한 중복생성 확률을 가집니다)135136```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 137–138why, one step back
137import { nanoid } from "nanoid";
138model.id = nanoid(); //=> "V1StGXR8_Z5jdHi6B-myT"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 139–144why, one step back
139```
140141생성되는 랜덤 아이디의 크기를 줄이고 싶으면 파라미터로 해당 길이 값을 넣어주면 됩니다.142(이렇게 하면 중복 생성이 발생할 확률도 올라갑니다)143144```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 145why, one step back
145nanoid(10); //=> "IRFa-VaY2b"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 146–160why, one step back
146```
147148아래의 [아이디 중복확률] 계산기로 여러분의 아이디가 얼마나 안전한지 확인해보세요.149150[사용자 커스텀 문자열](#사용자-커스텀-문자열) 이나151[사용자가 만든 랜덤 생성기](#사용자-지정-랜덤-바이트-생성기) 를 사용할 수도 있습니다.152153[아이디 중복확률]: https://zelark.github.io/nano-id-cc/154155### 사용자 커스텀 문자열156157`customAlphabet` 함수를 사용하면 지정된 문자열 내에서 지정된 개수로 이루어진158랜덤 아이디를 생성할 수 있는 `nanoid` 함수를 만들 수 있습니다159160```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 161–163why, one step back
161import { customAlphabet } from "nanoid";
162const nanoid = customAlphabet("1234567890abcdef", 10);163model.id = nanoid(); //=> "4f90d13a42"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 164–166why, one step back
164```
165166```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 167–169why, one step back
167import { customAlphabet } from "nanoid/non-secure";
168const nanoid = customAlphabet("1234567890abcdef", 10);169user.id = nanoid();

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 170–180why, one step back
170```
171172[아이디 충돌 확률] 계산기를 사용하여 여러분이 지정한 문자와 사이즈에 대한 중복 생성 확률을 확인해보세요.173[`nanoid-dictionary`] 에서 어떤 문자열을 사용할 수 있는지에 대한 옵션을 확인할 수 있습니다.174175커스텀 문자열은 256개 이하의 개수를 가져야 합니다.176그 외의 경우 내부의 생성 알고리즘의 보안성을 보장할 수 없습니다.177178기본 사이즈를 지정한 후에, 새로 만들어진 함수를 부를 때 생성할 문자열의 개수를 다시 지정하는 것도 가능합니다179180```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 181–183why, one step back
181import { customAlphabet } from "nanoid";
182const nanoid = customAlphabet("1234567890abcdef", 10);183model.id = nanoid(5); //=> "f01a2"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 184–185why, one step back
184```
185

Update collision calculator URL in all README translations (#568)Mahmoud Hamdybefore adoptiond8fba79

line 186why, one step back
186[아이디 충돌 확률]: https://zelark.github.io/nano-id-cc/

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 187why, one step back
187[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 188–195why, one step back
188
189### 사용자 지정 랜덤 바이트 생성기190191`customRandom` 함수를 사용하면 `nanoid`에서 사용할 문자열과 알고리즘을 지정할 수 있습니다.192193아래 예시는 시드 값을 기반으로 하는 랜덤 생성기를 사용하였습니다.194195```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 196why, one step back
196import { customRandom } from "nanoid";

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 197why, one step back
197

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 198–201why, one step back
198const rng = seedrandom(seed);
199const nanoid = customRandom("abcdef", 10, (size) => {200 return new Uint8Array(size).map(() => 256 * rng());201});

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 202why, one step back
202

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 203why, one step back
203nanoid(); //=> "fbaefaadeb"

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 204–211why, one step back
204```
205206콜백 함수 `random` 는 반드시 배열의 크기를 받을 수 있어야 하며, 랜덤 숫자로 이루어진 배열을 리턴해야 합니다.207208URL 친화적인 기호들을 사용하여 `customRandom` 을 실행하려면,209`urlAlphabet`을 사용해 기본 문자셋을 가져올 수 있습니다.210211```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 212–213why, one step back
212const { customRandom, urlAlphabet } = require("nanoid");
213const nanoid = customRandom(urlAlphabet, 10, random);

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 214–217why, one step back
214```
215216참고로, Nano ID 버전이 변경됨에 따라 랜덤 생성기의 호출 시퀀스가 변경될 수 있습니다.217시드기반 생성기를 사용하는 경우 동일한 결과가 나오는 것을 보장할 수 없습니다.

Update docsAndrey Sitnikbefore adoptionc0779bd

lines 218–224why, one step back
218
219### Non-Secure220221Nano ID는 보안과 낮은 충돌 확률을 위해 하드웨어 랜덤 바이트 생성기를 사용합니다.222만약 보안이 중요하지 않다면 하드웨어 랜덤 생성기를 사용하지 않도록 설정할 수 있습니다.223224```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 225–226why, one step back
225import { nanoid } from "nanoid/non-secure";
226const id = nanoid(); //=> "Uakgb_J5m9g-0JDMbcJqLJ"

Update docsAndrey Sitnikbefore adoptionc0779bd

lines 227–230why, one step back
227```
228229단, non-secure 버전은 secure 버전보다 _느리다는_ 점에 유의하세요.230꼭 필요한 경우에만 사용하세요.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 231–239why, one step back
231
232## 사용법233234### React235236React에서 `key` props에 Nano ID를 사용하는 것은 좋지 않습니다.237이 값은 렌더링 될 때마다 동일한 값을 가지고 있어야 합니다.238239```jsx

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 240why, one step back
240function Todos({ todos }) {

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 241–242why, one step back
241 return (
242 <ul>

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 243why, one step back
243 {todos.map((todo) => (

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 244why, one step back
244 <li key={nanoid()}>

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 245why, one step back
245 {" "}

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 246why, one step back
246 /* 절대 하지 마세요 */

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 247–250why, one step back
247 {todo.text}
248 </li>249 ))}250 </ul>

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 251why, one step back
251 );

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 252–257why, one step back
252}
253```254255랜덤값보다 리스트 내에서 가져올 수 있는 값을 사용하여 안정된 값을 키 값으로 사용하는 것이 좋습니다.256257```jsx

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 258why, one step back
258const todoItems = todos.map((todo) => <li key={todo.id}>{todo.text}</li>);

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 259–263why, one step back
259```
260261`key` 값으로 사용할 적절한 값이 없는 경우에도 `nanoid()`를 사용하기 보다는 인덱스 값을 사용하세요:262263```jsx

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 264–265why, one step back
264const todoItems = todos.map((text, index) => (
265 <li key={index}>

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 266why, one step back
266 {" "}

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 267why, one step back
267 /* 추천되는 방식은 아니지만 nanoid()를 쓰는것 보단 낫습니다 */

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 268–269why, one step back
268 {text}
269 </li>

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 270why, one step back
270));

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 271–275why, one step back
271```
272273랜덤한 아이디를 생성하여 HTML 요소간의 연결 (label과 input 등)에 사용하는 경우에는274React 18에서 추가된 [`useId`] 를 추천합니다.275

Fix outdated size and links in README translations (#570)Mahmoud Hamdybefore adoption0232bae

line 276why, one step back
276[`useId`]: https://react.dev/reference/react/useId

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 277–287why, one step back
277
278### React Native279280React Native에는 내장된 랜덤 생성기가 존재하지 않습니다.281아래의 폴리필을 사용하면 순수 React Native와 Expo(`39`버전 이상) 환경에서282Nano ID를 사용할 수 있습니다.2832841. [`react-native-get-random-values`] 문서를 확인하고 설치합니다2852. Nano ID를 import하기 전에 이 패키지를 import 해야 합니다.286287```js

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 288–289why, one step back
288import "react-native-get-random-values";
289import { nanoid } from "nanoid";

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 290–340why, one step back
290```
291292[`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values293294### PouchDB 및 CouchDB295296PouchDB와 CouchDB에서는 ID 값을 `_`로 시작할 수 없습니다.297Nano ID는 기본적으로 `_`를 맨 앞에 붙일 수 있기 때문에,298이 문제를 해결하기 위해 접두어 (prefix)가 필요합니다.299300아래와 같이 접두어를 붙여서 사용합니다.301302```js303db.put({304 _id: 'id' + nanoid(),305 …306})307```308309### CLI310311터미널에서 `npx nanoid` 명령어를 입력하면 고유 ID를 생성할 수 있습니다.312Node.js가 시스템에 설치되어있어야 하며, Nano ID는 미리 설치되어있지 않아도 됩니다.313314```sh315$ npx nanoid316npx: installed 1 in 0.63s317LZfXLFzPPR4NNrgjlWDxn318```319320생성할 아이디의 길이를 변경하려면 `--size` (or `-s`) 옵션을 붙여줍니다:321322```sh323$ npx nanoid --size 10324L3til0JS4z325```326327사용자 커스텀 문자열을 사용하려면 `--alphabet` (or `-a`) 옵션을 사용합니다328(이 때 `--size`도 같이 사용해야 합니다):329330```sh331$ npx nanoid --alphabet abc --size 15332bccbcabaabaccab333```334335### TypeScript336337Nano ID는 생성된 문자열을 TypeScript의 순수 string이 아닌 타입에도 할당할 수 있습니다.338예를 들어 아래와 같이 가능합니다:339340```ts

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 341–342why, one step back
341declare const userIdBrand: unique symbol;
342type UserId = string & { [userIdBrand]: true };

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 343–344why, one step back
343
344// 명시적으로 타입 파라미터를 사용:

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

line 345why, one step back
345mockUser(nanoid<UserId>());

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 346–347why, one step back
346
347interface User {

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 348–349why, one step back
348 id: UserId;
349 name: string;

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 350–354why, one step back
350}
351352const user: User = {353 // 자동으로 UserId 타입으로 캐스팅됨:354 id: nanoid(),

Reduce dependencies by moving to Rolldown instead of Webpack for Size LimitAndrey Sitnikbefore adoptionb8918c5

lines 355–356why, one step back
355 name: "Alice",
356};

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 357–362why, one step back
357```
358359### 다른 언어들360361Nano ID는 다양한 언어로 포팅되었습니다. 클라이언트/서버에 관계없이 아래의 다양한 포팅된 버전들을 사용할 수 있습니다.362

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 363–383why, one step back
363- [C](https://github.com/lukateras/nanoid.h)
364- [C#](https://github.com/codeyu/nanoid-net)365- [C++](https://github.com/mcmikecreations/nanoid_cpp)366- [Clojure and ClojureScript](https://github.com/zelark/nano-id)367- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)368- [Crystal](https://github.com/mamantoha/nanoid.cr)369- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)370- [Elixir](https://github.com/railsmechanic/nanoid)371- [Gleam](https://github.com/0xca551e/glanoid)372- [Go](https://github.com/matoous/go-nanoid)373- [Haskell](https://github.com/MichelBoucey/NanoID)374- [Haxe](https://github.com/flashultra/uuid)375- [Janet](https://sr.ht/~statianzo/janet-nanoid/)376- [Java](https://github.com/wosherco/jnanoid-enhanced)377- [Kotlin](https://github.com/viascom/nanoid-kotlin)378- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)379- [Nim](https://github.com/icyphox/nanoid.nim)380- [OCaml](https://github.com/routineco/ocaml-nanoid)381- [Perl](https://github.com/tkzwtks/Nanoid-perl)382- [PHP](https://github.com/hidehalo/nanoid-php)383- Python [native](https://github.com/puyuan/py-nanoid) implementation

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 384–385why, one step back
384 with [dictionaries](https://pypi.org/project/nanoid-dictionary)
385 and [fast](https://github.com/oliverlambson/fastnanoid) implementation (written in Rust)

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

line 386why, one step back
386- Postgres [Extension](https://github.com/spa5k/uids-postgres)

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

line 387why, one step back
387 and [Native Function](https://github.com/viascom/nanoid-postgres)

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 388–394why, one step back
388- [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)
389- [Ruby](https://github.com/radeno/nanoid.rb)390- [Rust](https://github.com/nikolay-govorov/nanoid)391- [Swift](https://github.com/ShivaHuang/swift-nanoid)392- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)393- [V](https://github.com/invipal/nanoid)394- [Zig](https://github.com/SasLuca/zig-nanoid)

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 395–401why, one step back
395
396이 외의 환경에서는 [CLI]를 사용하여 터미널 환경에서 랜덤 아이디를 생성할 수 있습니다.397398[CLI]: #cli399400## 도구401

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 402–404why, one step back
402- [ID 사이즈 계산기]는 문자열과 생성 사이즈를 변경한 경우 중복된 아이디가 생성될 수 있는 충돌 확률을 알려줍니다.
403- [`customAlphabet`]에서 사용할 수 있는 일반적인 문자열들을 [`nanoid-dictionary`]로 찾아볼 수 있습니다.404- 생성된 ID에 이상한 단어가 들어가는 것을 방지하려면 [`nanoid-good`]를 사용할 수 있습니다.

Added Korean version of README.md and links from other files (#531)Nirabefore adoptionde4dba0

lines 405–406why, one step back
405
406[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary

Move from Prettier and ESLint to oxfmt and oxlintAndrey Sitnikbefore adoption4bf7b85

lines 407–409why, one step back
407[ID 사이즈 계산기]: https://zelark.github.io/nano-id-cc/
408[`customAlphabet`]: #custom-alphabet-or-size409[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good