🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@arkecosystem/utils

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arkecosystem/utils

Performance oriented implementations of commonly used functions in TypeScript.

1.3.1
latest
npm
Version published
Weekly downloads
205
-79.68%
Maintainers
2
Weekly downloads
 
Created
Source

Utilities

Codecov License: MIT

Lead Maintainer: Brian Faust

Caveats

  • The native map, filter, reduce and forEach 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 the en-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 the en-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

MIT © ARK Ecosystem

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts