This package has been deprecated

Author message:

This package has been renamed to 'pixiu-number-toolkit'. Please install the new package for future updates.

@handsomewolf/num-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

README | 中文文档

num-utils Documentation

num-utils is a collection of number utilities written in TypeScript. It provides a set of functions for number conversion, finance calculations, formatting, and math operations. It also includes utilities for Vue's Element Plus library.

Documentation - Official guide for num-utils with examples and usage scenarios.

Changelog - View the detailed version history of num-utils here.

Installation

To install num-utils, use the following command:

npm install @handsomewolf/num-utils

Utilities

Basic Utilities

Function Name Description
Digit Chinese Uppercase Convert numeric amount to Chinese uppercase
Number To Words Convert numeric to word representation in either English or Chinese
Math Performing various mathematical operations
Thousand Separator Add or remove thousand separator
Percentage Convert number to percentage format
Compute expression Mathematical formula
Unit Conversion Unit conversion
Validation Numeric related validation
Utils Common tools

Element Plus Utilities

Function Name Description
Thousand Separator Use thousand separator in Element Plus library's input component
Form Validation Use form validation in Element Plus library's Form component
Table Summary Row Use summary row in Element Plus library's Table component

Contributing

Contributions are welcome. Please submit a pull request or create an issue to contribute to the project.

Package Sidebar

Install

npm i @handsomewolf/num-utils

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

181 kB

Total Files

10

Last publish

Collaborators

  • handsomewolf