# important-extremely-useful-classes

> Extremely useful classes to use in every project.

Latest version **3.1.1** (published 2026-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install important-extremely-useful-classes
pnpm add important-extremely-useful-classes
yarn add important-extremely-useful-classes
bun add important-extremely-useful-classes
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2026-03-11 |
| First published | 2025-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | me |
| Maintainers | tj-commits |
| Keywords | important, extremelyuseful, much-needed, useful, very-important, extremely-useful, extreme, extremely, 10x, 10x-engineered, 10x-engineer, truly-10x |

## Links

- npm: https://www.npmjs.com/package/important-extremely-useful-classes
- Repository: https://github.com/10xEngineersQualityProgramming/ImportantExtremelyUsefulClasses.js
- Homepage: https://github.com/10xEngineersQualityProgramming/ImportantExtremelyUsefulClasses.js#readme
- Issues: https://github.com/10xEngineersQualityProgramming/ImportantExtremelyUsefulClasses.js/issues
- npm.io page: https://npm.io/package/important-extremely-useful-classes

## Dependencies (11)

- [tru](https://npm.io/package/tru.md) ^1.0.0
- [n0p3](https://npm.io/package/n0p3.md) ^1.0.2
- [is-true](https://npm.io/package/is-true.md) ^0.1.1
- [cli-color](https://npm.io/package/cli-color.md) ^2.0.4
- [successor](https://npm.io/package/successor.md) ^1.0.1
- [is-falsey-x](https://npm.io/package/is-falsey-x.md) ^1.0.3
- [is-truthy-x](https://npm.io/package/is-truthy-x.md) ^1.0.2
- [logtoconsole](https://npm.io/package/logtoconsole.md) ^1.0.7
- [construct-new](https://npm.io/package/construct-new.md) ^2.0.9
- [is-not-integer](https://npm.io/package/is-not-integer.md) ^1.0.2
- [weird-instanceof](https://npm.io/package/weird-instanceof.md) ^1.0.0

## Recent versions

- 3.1.1 (latest) — 2026-03-11
- 3.1.0 — 2025-12-28
- 3.0.0 — 2025-12-14
- 1.2.0 — 2025-09-07
- 1.1.0 — 2025-06-09
- 1.0.2 — 2025-05-28
- 1.0.1 — 2025-05-28
- 1.0.0 — 2025-05-28

## README

# EXTREMELY USEFUL CLASSES
This library provides extremely useful classes for javascript.

## installatiion
install with yarn:
```bash
$ yarn add important-extremely-useful-classes
```

or npm:
```bash
$ npm i important-extremely-useful-classes
```

## `Logger`
This is useful for when you want logs but you don't want them to show if logging is not enabled, and you don't want an if statement everytime you need to log something when enableLogging is enabled.

`new Logger(loggingEnabled?: boolean);`

Usage:
```js

const { Logger } = require('important-extremely-useful-classes')
function logHiIfLoggingIsEnabled(enableLogging) {
  var logger = new Logger(enableLogging)
  logger.log('Hi')
}

logHiIfLoggingIsEnabled(false) // no output
logHiIfLoggingIsEnabled(true) // Output: Hi
```

## `SuccessorHelper`
This is a helper to get the successor of a number.

Usage:
```js
const { SuccessorHelper } = require('important-extremely-useful-classes')
const { s } = new SuccessorHelper()

console.log(s(1)) // 2
console.log(s(32767)) // 32768
console.log(s(53)) // 54
```

## `TernaryCompare`
Class alternative for ternary statements. (NOT ES5 ALTERNATIVE AS IT USES TERNARY STATEMENT IN THE CODE OF THE CLASS!!!!!!!!!!)

Usage:
```js

// Old
function hiorbye(sayBye) {
  console.log(sayBye ? 'bye' : 'hi')
}
console.log(hiorbye(true)) // bye
console.log(hiorbye(false)) // hi

// New
const { TernaryCompare } = require('important-extremely-useful-classes')
function hiorbye(sayBye) {
  console.log(new TernaryCompare(sayBye, 'bye', 'hi').compare())
}
console.log(hiorbye(true)) // bye
console.log(hiorbye(false)) // hi

```

## `ObjectOrFunctionParemeterName`

To refer to an object's property's key name semantically with `isTrue`.

```js

// Old
const isTrue = require('is-true')

console.log(isTrue({ value: true }, 'value')) // true
console.log(isTrue({ value: 'sdfsdfsdf'}, 'value')) // false

// New

const isTrue = require('is-true')
const { ObjectOrFunctionParemeterName } = require('important-extremely-useful-classes')

console.log(isTrue({ value: true }, new ObjectOrFunctionParemeterName('value').getName())) // true
console.log(isTrue({ value: 'sdfsdfsdf'}, new ObjectOrFunctionParemeterName('value').getName())) // false

```

## `CLIColorInstance` and `PicoColorInstance`

rely on this library to get cli-color and picocolors instead of you doing it yourself

```js
// old

var cl = require('cli-color')
var picocolor = require('picocolors')


// new

var { CLIColorInstance, PicoColorInstance } = require("important-extremely-useful-classes")

var clc = new CLIColorInstance().getInstance()

var picocolor = new PicoColorInstance().getInstance()
```

## contributing


IF YOU HAVE MORE USEFUL CLASSES, FEEL FREE TO FILE ISSUE OR PR ON <a href="https://github.com/10xEngineersQualityProgramming/ImportantExtremelyUsefulClasses.js">THE GITHUB REPO</a>!!!!

ACTUALLY PLEASE DO BECAUSE WE REALLY WANT CONTRIBUTIOONS PLEASE SUBMIT NEW PACKAGES PLEASE!!!!!!!!!!!!!!!!!!

---
_Source: https://npm.io/package/important-extremely-useful-classes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
