4.0.0 • Published 9 months ago

@kikiutils/classes v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@kikiutils/classes

npm version npm downloads License

A utility library providing various classes for advanced operations and manipulations.

Features

  • 📁 Path Class: Convenient manipulation and querying of file system paths with immutable methods.
  • 🔢 PrecisionNumber Class: Accurate arithmetic operations with configurable decimal places and rounding using Decimal.js.

Environment Requirements

  • Node.js version 18 or higher

Installation

Add dependency (example using pnpm).

pnpm add @kikiutils/classes

You can also use yarn, npm, or bun to add the dependency.

That's it! You're ready to use this package in your project. Check out the instructions for classes below ✨.

!NOTE When installing this package, not all required dependencies will be installed. If a function uses specific functionalities, you will need to install the corresponding dependencies manually.

For example, if there is a file that uses precision-number.ts, you will need to manually install decimal.js.

Classes

Detailed descriptions and examples can be found in the annotations within each class.

  • Path

    • Provides a comprehensive wrapper around Node.js path and fs modules, and fs-extra library.
    • Immutable methods that return new instances with modified values.
    • Integration with @kikiutils/fs-extra for enhanced file system operations.
  • PrecisionNumber

    • Ensures accurate arithmetic operations with floating point numbers using the Decimal.js library.
    • Supports addition, subtraction, multiplication, and division with high precision.
    • Includes methods for comparing numbers and checking states (e.g., finite, integer, zero).
    • In-place modification methods and immutable methods for flexible value manipulation.

License

MIT License

4.0.0

9 months ago

3.0.0

10 months ago

2.3.0

10 months ago

2.3.1

10 months ago

2.2.0

11 months ago

2.1.1

12 months ago

2.1.0

12 months ago

2.0.0

1 year ago

2.0.0-rc.2

1 year ago

2.0.0-rc.1

1 year ago

2.0.0-rc.0

1 year ago

2.0.0-alpha.2

1 year ago

2.0.0-alpha.1

1 year ago

2.0.0-alpha.0

1 year ago

1.3.0

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago