@toss/utils
@toss/utils
is a package of utility functions which can be used in any environment, including React, Node.js, and Vanilla JS.
$ npm install @toss/utils
$ pnpm add @toss/utils
$ yarn add @toss/utils
Features
- Some of the functions in the
lodash
library is reimplemented in modern JavaScript, thereby providing the same features but reducing bundle size. - It is tree-shakable, since it fully supports ECMAScript modules.
- Functions have types in TypeScript, preventing runtime errors.
- It includes many validation or formatting functions for several values.