Description
Common JavaScript utilities for Sofi Projects.
Features
- Written In Typescript
- Offers CJS, and ESM builds
- Full TypeScript & JavaScript support
Install
You can use the following command to install this package, or replace npm install with your package manager of choice.
npm i @sofidev/utility
Usage
You can import individual utility function from subpath like: @sofidev/utility/pickRandom or the entire library.
import { pickRandom } from '@sofidev/utility/pickRandom';
// or
import { pickRandom } from '@sofidev/utility';
Note: For typescript users, subpath import are only supported in --moduleResolution node16
and --moduleResolution nodenext
. More information can be found in this issue on the microsoft/TypeScript repository.
✨
Contributors Thanks goes to these wonderful people (emoji key):
Parbez |
Voxelli |
WhiteSource Renovate |
This project follows the all-contributors specification. Contributions of any kind welcome!