@digitalwalletcorp/utils
v0.10.0
Published
A javascript utility.
Readme
utils
A set of javascript utilities.
| Utility | Description |
| ------- | ----------- |
| CryptoUtil | Cryptographic and token generation helpers. |
| DateUtil | Date and time parsing, formatting and comparison with explicit time zones. |
| Decimal | Immutable decimal arithmetic for multi-step calculations. |
| FileUtil | Conversion between base64, DataURL and binary, and file type detection. |
| HtmlUtil | HTML content transformation and sanitization. |
| JsonUtil | JSON parsing and serialization that keeps large integers intact. |
| NumberUtil | Precision-safe numeric calculations and formatting. |
| ObjectUtil | Deep cloning, merging and inspection of objects. |
| StringUtil | General string manipulation and processing. |
✅ Compatibility
- ✅ Node.js: Fully supported on all modern Node.js versions.
- ✅ Browsers: Fully supported on all modern browsers that support ES2020 (
BigInt). - ✅ Module formats: CommonJS and ESM.
📦 Installation
npm install @digitalwalletcorp/utils
# or
yarn add @digitalwalletcorp/utils📖 Usage
import { NumberUtil } from '@digitalwalletcorp/utils';
NumberUtil.formatComma(1234567.891, 2); // '1,234,567.89'📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
