mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 11:45:26 +03:00
1.1 KiB
1.1 KiB
description | prev | next | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
How to install es-toolkit |
|
|
Installation
es-toolkit is available via npm for Node.js and Bun, and through JSR for Deno.
Node.js
es-toolkit supports Node.js 18 or later. Install es-toolkit with the following command:
::: code-group
npm install es-toolkit
pnpm install es-toolkit
yarn add es-toolkit
:::
Deno
es-toolkit is also available via JSR for Deno. To install es-toolkit, use the following command:
deno add @es-toolkit/es-toolkit
Note that the package name includes an additional scope, distinct from npm, as per JSR restrictions.
import { sum } from '@es-toolkit/es-toolkit';
sum([1, 2, 3]);
Bun
es-toolkit is also available on Bun. You can install it via the following command:
bun add es-toolkit