0.0.0 • Published 15 days ago

zerosurge v0.0.0

Weekly downloads
-
License
10xGPWTHPL
Repository
github
Last release
15 days ago

ZeroSurge.js

(i apologize for the terrible logo.)

The fastest zero utility library on the internet.

Tired of painstakingly trying to find the character 0 on your keyboard and then pushing the button, or don't remember how to use the number zero in JavaScript? Well, this library is the new way to zero. ZeroSurge.js is the future!

Installation

You can include Zerosurge in your project using your favorite package manager:

NPM:

$ npm install zerosurge

Yarn:

$ yarn add zerosurge

PNPM:

$ pnpm add zerosurge

Usage

Enums

ZeroCalculationMethod This enum defines the calculation methods available for the returnZero function in the library:

  • CreashaksOrganzine: Method 1 for zero calculation. This uses the string "creashaks organzine" and uses Minecraft seed input algorithm to make the number zero from it.
  • NumberPrototypeValue: Method 2 for zero calculation. This uses the Number class prototype to return zero.

Functions

returnZero(options?: ReturnZeroOptions): number

This function returns the number zero. You can specify the calculation method and whether to enable logging.

Example

import { returnZero, ZeroCalculationMethod } from 'zerosurge';

const zeroValue = returnZero({
  method: ZeroCalculationMethod.CreashaksOrganzine,
  loggingEnabled: true
});

console.log(zeroValue); // Outputs: 0

isZero(value: any, loggingEnabled?: boolean): boolean

This function checks if a given value is zero. If logging is enabled, it will log the evaluation process to the console.

import { isZero } from 'zerosurge';

const result = isZero(0, true);
console.log(result); // Outputs: true

Logging

When loggingEnabled is set to true, the library will log relevant messages to the console, allowing you to trace the internal workings of the calculations. If it is not true there will still be some logs because ZeroSurge uses other libraries in its core that may log things without user consent.

Contributing

Contributions welcome. You can contribute by opening a pull request or issue at our github repository.

License

Zerosurge is licensed under the 10xGPWTHPL License. See the LICENSE file for more details.

made with HEAVY BLACK HEART U+2764 ❤❤❤❤

10xGPWTHPL Licensed