docs: Update Korean docs for JSR installation in deno

This commit is contained in:
Sojin Park 2024-06-30 13:50:43 +09:00
parent 6c776a49f1
commit 2615cab8f5
2 changed files with 13 additions and 3 deletions

View File

@ -30,7 +30,7 @@ es-toolkit is also accessible via [JSR](https://jsr.io/@es-toolkit/es-toolkit) f
deno add @es-toolkit/es-toolkit
```
lease be aware that the package name includes an additional scope, distinct from npm, as per JSR restrictions.
Note that the package name includes an additional scope, distinct from npm, as per JSR restrictions.
```typescript
import { sum } from '@es-toolkit/es-toolkit';

View File

@ -24,10 +24,20 @@ pnpm install es-toolkit
## Deno
es-toolkit은 Deno도 지원해요. `npm:`을 이용해서 사용하세요.
## Deno
es-toolkit을 Deno에서도 사용할 수 있어요. [JSR](https://jsr.io/@es-toolkit/es-toolkit)에서 아래 명령어로 설치하세요.
```sh
deno add @es-toolkit/es-toolkit
```
Deno에서 사용하면, JSR에서의 제한으로 인해 NPM과 다르게 추가적인 Scope가 필요해요.
```typescript
import { chunk } from 'npm:es-toolkit@1.0.0';
import { sum } from '@es-toolkit/es-toolkit';
sum([1, 2, 3]);
```
## Bun