1.3.1 • Published 3 years ago
@cauriland/utils v1.3.1
Utilities
Lead Maintainer: Arsel Tindo Legacy Maintainer: Brian Faust
Caveats
- The native
map
,filter
,reduce
andforEach
will generally be faster when used on arrays that contain nothing but numerical values. - If you plan to use
formatCurrency
method with node.js for anything else then theen-US
locale you'll have to make sure to properly setup https://github.com/unicode-org/full-icu-npm as node.js itself only ships with theen-US
locale by default unless specifically build with more locales. - Do not use the
is*
methods of this package inside the Node.js VM as the results could be misleading. - The
pluralize
method does not support irregular plurals. Check blakeembrey/pluralize if you need support for those.
Installation
npm
npm install @cauriland/utils
yarn
yarn add @cauriland/utils
pnpm
pnpm add @cauriland/utils
Test
npm
npm run test -- --coverage
yarn
yarn test --coverage
pnpm
pnpm run test -- --coverage
Benchmark
Clone
git clone git@github.com:cauriland/utils.git
Run
npm
npm install
npm run bench
yarn
yarn install
yarn bench
pnpm
pnpm install
pnpm run bench
Security
If you discover a security vulnerability within this package, please send an e-mail to security@cauri.cm. All security vulnerabilities will be promptly addressed.
License
1.3.1
3 years ago