1.3.1 • Published 3 years ago
@arkecosystem/utils v1.3.1
Utilities
Lead 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 @arkecosystem/utils
yarn
yarn add @arkecosystem/utils
pnpm
pnpm add @arkecosystem/utils
Test
npm
npm run test -- --coverage
yarn
yarn test --coverage
pnpm
pnpm run test -- --coverage
Benchmark
Clone
git clone git@github.com:ArkEcosystem/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@ark.io. All security vulnerabilities will be promptly addressed.
Credits
This project exists thanks to all the people who contribute.
License
1.3.1
3 years ago
1.3.0
4 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.8
5 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.0
6 years ago
1.0.34
6 years ago
1.0.31
6 years ago
1.0.30
6 years ago
1.0.0
6 years ago
0.9.9
6 years ago
0.9.1
6 years ago
0.8.8
6 years ago
0.8.3
6 years ago
0.8.0
6 years ago
0.7.1
6 years ago
0.7.0
6 years ago
0.6.8
6 years ago
0.6.0
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.51
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago