Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kikiutils/classes

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kikiutils/classes

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

  • 4.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@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

Keywords

FAQs

Package last updated on 25 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc