1.3.1 • Published 4 years ago
@cauriland/utils v1.3.1
Utilities
Lead Maintainer: Arsel Tindo Legacy Maintainer: Brian Faust
Caveats
- The native
map,filter,reduceandforEachwill generally be faster when used on arrays that contain nothing but numerical values. - If you plan to use
formatCurrencymethod with node.js for anything else then theen-USlocale 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-USlocale 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
pluralizemethod does not support irregular plurals. Check blakeembrey/pluralize if you need support for those.
Installation
npm
npm install @cauriland/utilsyarn
yarn add @cauriland/utilspnpm
pnpm add @cauriland/utilsTest
npm
npm run test -- --coverageyarn
yarn test --coveragepnpm
pnpm run test -- --coverageBenchmark
Clone
git clone git@github.com:cauriland/utils.gitRun
npm
npm install
npm run benchyarn
yarn install
yarn benchpnpm
pnpm install
pnpm run benchSecurity
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
4 years ago