{"name":"es-toolkit","version":"1.2.2-dev.72","_id":"es-toolkit@1.2.2-dev.72","dist":{"shasum":"600422394bbb71cb9e9ec7950172b451c8ef54eb","tarball":"http://registry-npm.ywwl.com/es-toolkit/download/es-toolkit-1.2.2-dev.72.tgz","fileCount":434,"integrity":"sha512-kovoxasTX8+gA91Mi6nnm8g6MkDvGo/AIX9bpzhK6VWrqZgtSvVn1zSM30FM/yASYPj1YDAOycE9tS60RSVBpw==","signatures":[{"sig":"MEYCIQD61BxihBOmwJhPnFOzACTBjyrtB3zhkjZg7BfmCraqWwIhALvkWVmi9eGomcv+TxMuHgxB+bveL6FeKsU2sBBs1J0a","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":488694,"size":81546,"noattachment":false,"key":"/es-toolkit/-/es-toolkit-1.2.2-dev.72.tgz"},"main":"./dist/index.js","_from":"file:es-toolkit-1.2.2-dev.72+ac4039e8.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./math":{"import":{"types":"./dist/math/index.d.mts","default":"./dist/math/index.mjs"},"require":{"types":"./dist/math/index.d.ts","default":"./dist/math/index.js"}},"./array":{"import":{"types":"./dist/array/index.d.mts","default":"./dist/array/index.mjs"},"require":{"types":"./dist/array/index.d.ts","default":"./dist/array/index.js"}},"./object":{"import":{"types":"./dist/object/index.d.mts","default":"./dist/object/index.mjs"},"require":{"types":"./dist/object/index.d.ts","default":"./dist/object/index.js"}},"./promise":{"import":{"types":"./dist/promise/index.d.mts","default":"./dist/promise/index.mjs"},"require":{"types":"./dist/promise/index.d.ts","default":"./dist/promise/index.js"}},"./function":{"import":{"types":"./dist/function/index.d.mts","default":"./dist/function/index.mjs"},"require":{"types":"./dist/function/index.d.ts","default":"./dist/function/index.js"}},"./predicate":{"import":{"types":"./dist/predicate/index.d.mts","default":"./dist/predicate/index.mjs"},"require":{"types":"./dist/predicate/index.d.ts","default":"./dist/predicate/index.js"}},"./package.json":"./package.json"},"scripts":{"lint":"eslint ./src --ext .ts","test":"vitest run --coverage --typecheck","build":"tsup && ./.scripts/postbuild.sh","format":"prettier --write .","prepack":"yarn build"},"_npmUser":{"name":"toss-build-bot","email":"npm-admin@toss.im"},"_resolved":"/home/runner/work/es-toolkit/es-toolkit/out/es-toolkit-1.2.2-dev.72+ac4039e8.tgz","_integrity":"sha512-kovoxasTX8+gA91Mi6nnm8g6MkDvGo/AIX9bpzhK6VWrqZgtSvVn1zSM30FM/yASYPj1YDAOycE9tS60RSVBpw==","workspaces":["docs"],"_npmVersion":"10.7.0","description":"A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","publishConfig":{"main":"./dist/index.js","types":"./dist/index.d.ts","access":"public","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./math":{"import":{"types":"./dist/math/index.d.mts","default":"./dist/math/index.mjs"},"require":{"types":"./dist/math/index.d.ts","default":"./dist/math/index.js"}},"./array":{"import":{"types":"./dist/array/index.d.mts","default":"./dist/array/index.mjs"},"require":{"types":"./dist/array/index.d.ts","default":"./dist/array/index.js"}},"./object":{"import":{"types":"./dist/object/index.d.mts","default":"./dist/object/index.mjs"},"require":{"types":"./dist/object/index.d.ts","default":"./dist/object/index.js"}},"./promise":{"import":{"types":"./dist/promise/index.d.mts","default":"./dist/promise/index.mjs"},"require":{"types":"./dist/promise/index.d.ts","default":"./dist/promise/index.js"}},"./function":{"import":{"types":"./dist/function/index.d.mts","default":"./dist/function/index.mjs"},"require":{"types":"./dist/function/index.d.ts","default":"./dist/function/index.js"}},"./predicate":{"import":{"types":"./dist/predicate/index.d.mts","default":"./dist/predicate/index.mjs"},"require":{"types":"./dist/predicate/index.d.ts","default":"./dist/predicate/index.js"}},"./package.json":"./package.json"}},"_hasShrinkwrap":false,"packageManager":"yarn@4.2.2","readmeFilename":"README.md","devDependencies":{"tsup":"^8.1.0","eslint":"^8.56.0","lodash":"^4.17.21","vitest":"^1.5.2","prettier":"^3.2.5","typescript":"^5.4.5","@babel/core":"^7.24.5","@types/node":"^20.12.11","@types/lodash":"^4","@changesets/cli":"^2.27.1","@babel/preset-env":"^7.24.5","@types/babel__core":"^7","broken-link-checker":"^0.7.8","eslint-config-prettier":"^8.5.0","@babel/preset-typescript":"^7.24.1","@types/babel__preset-env":"^7","@typescript-eslint/parser":"^7.7.1","@vitest/coverage-istanbul":"^1.5.2","@types/broken-link-checker":"^0","@changesets/changelog-github":"^0.5.0","@typescript-eslint/eslint-plugin":"^7.7.1"},"_npmOperationalInternal":{"tmp":"tmp/es-toolkit_1.2.2-dev.72_1718326612417_0.19235070423268796","host":"s3://npm-registry-packages"},"readme":"![](./docs/public/og.png)\n\n# es-toolkit &middot; [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toss/es-toolkit/blob/main/LICENSE) [![codecov](https://codecov.io/gh/toss/es-toolkit/graph/badge.svg?token=8N5S3AR3C7)](https://codecov.io/gh/toss/es-toolkit) [![NPM badge](https://img.shields.io/npm/v/es-toolkit?logo=npm)](https://www.npmjs.com/package/es-toolkit) [![JSR badge](https://jsr.io/badges/@es-toolkit/es-toolkit)](https://jsr.io/@es-toolkit/es-toolkit) [![Discord Badge](https://discord.com/api/guilds/1281071127052943361/widget.png?style=shield)](https://discord.gg/vGXbVjP2nY)\n\nEnglish | [한국어](https://github.com/toss/es-toolkit/blob/main/README-ko_kr.md) | [简体中文](https://github.com/toss/es-toolkit/blob/main/README-zh_hans.md) | [日本語](https://github.com/toss/es-toolkit/blob/main/README-ja_jp.md)\n\nes-toolkit is a state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.\n\n- es-toolkit offers a variety of everyday utility functions with modern implementations, such as [debounce](https://es-toolkit.dev/reference/function/debounce.html), [delay](https://es-toolkit.dev/reference/promise/delay.html), [chunk](https://es-toolkit.dev/reference/array/chunk.html), [sum](https://es-toolkit.dev/reference/math/sum.html), and [pick](https://es-toolkit.dev/reference/object/pick.html).\n- Designed with performance in mind, es-toolkit achieves [2-3× better performance](https://es-toolkit.dev/performance.html) in modern JavaScript environments.\n- es-toolkit supports tree shaking out of the box, and [reduces JavaScript code by up to 97%](https://es-toolkit.dev/bundle-size.html) compared to other libraries.\n- es-toolkit offers a complete compatibility layer to seamlessly replace Lodash, available as [es-toolkit/compat](https://es-toolkit.dev/compatibility.html).\n- es-toolkit includes built-in TypeScript support, with straightforward yet robust types. It also provides useful type guards such as [isNotNil](https://es-toolkit.dev/reference/predicate/isNotNil.html).\n- es-toolkit is trusted and used by popular open-source projects like [Storybook](https://github.com/storybookjs/storybook/blob/9d862798d666678cc4822e857c00bbd744169ced/code/core/package.json#L358), [Recharts](https://github.com/recharts/recharts/blob/0fa4cc325da403b6fa1c6be0f820896ed92f806a/package.json#L94), [ink](https://github.com/vadimdemedes/ink/blob/2090ad9779be59dea71d173eb49785b7bd4495d0/package.json#L55), and [CKEditor](https://github.com/ckeditor/ckeditor5/blob/60d5fac804643cb4d359767ee2f94e3d92d1fcc5/packages/ckeditor5-core/package.json#L53).\n- es-toolkit is battle-tested with 100% test coverage, ensuring reliability and robustness.\n\n## Examples\n\n```tsx\n// import from '@es-toolkit/es-toolkit' in jsr.\nimport { chunk, debounce } from 'es-toolkit';\n\nconst debouncedLog = debounce(message => {\n  console.log(message);\n}, 300);\n\n// This call will be debounced\ndebouncedLog('Hello, world!');\n\nconst array = [1, 2, 3, 4, 5, 6];\nconst chunkedArray = chunk(array, 2);\n\nconsole.log(chunkedArray);\n// Output: [[1, 2], [3, 4], [5, 6]]\n```\n\n## AI Integration\n\nes-toolkit provides [Agent Skills](https://skills.sh) for AI coding tools like Claude Code, Cursor, and Copilot.\n\n```bash\nnpx skills add toss/es-toolkit\n```\n\nFor Claude Code, you can also install via the plugin marketplace:\n\n```\n/plugin marketplace add toss/es-toolkit\n/plugin install es-toolkit@es-toolkit-plugin\n```\n\nFor more details, see the [AI Integration guide](https://es-toolkit.dev/ai-integration.html).\n\n## Contributing\n\nWe welcome contributions from everyone in the community. Read below for a detailed contribution guide.\n\n[CONTRIBUTING](https://github.com/toss/es-toolkit/blob/main/.github/CONTRIBUTING.md)\n\n## License\n\nMIT © Viva Republica, Inc. See [LICENSE](./LICENSE) for details.\n\n<a title=\"Toss\" href=\"https://toss.im\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://static.toss.im/logos/png/4x/logo-toss-reverse.png\">\n    <img alt=\"Toss\" src=\"https://static.toss.im/logos/png/4x/logo-toss.png\" width=\"100\">\n  </picture>\n</a>\n","publish_time":1718326612724,"maintainers":[{"name":"toss-build-bot","email":"npm-admin@toss.im"},{"name":"raon0211","email":"raon0211@toss.im"}],"_cnpm_publish_time":1718326612724,"dist-tags":{"canary":"1.0.2-canary.0","dev":"1.53.1-dev.2169","latest":"1.53.1"}}