# js-vextensions

> Extensions for Javascript, by Venryx.

Latest version **1.0.81** (published 2025-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-vextensions
pnpm add js-vextensions
yarn add js-vextensions
bun add js-vextensions
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.81 |
| Published | 2025-10-14 |
| First published | 2018-01-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 498.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Venryx |
| Maintainers | venryx |
| Keywords | javascript |

## Links

- npm: https://www.npmjs.com/package/js-vextensions
- Repository: https://github.com/Venryx/js-vextensions
- Homepage: https://github.com/Venryx/js-vextensions#readme
- Issues: https://github.com/Venryx/js-vextensions/issues
- npm.io page: https://npm.io/package/js-vextensions

## Recent versions

- 1.0.81 (latest) — 2025-10-14
- 1.0.80 — 2024-09-22
- 1.0.79 — 2024-07-14
- 1.0.78 — 2024-06-17
- 1.0.77 — 2024-02-07
- 1.0.76 — 2024-01-12
- 1.0.75 — 2023-12-31
- 1.0.74 — 2023-11-07
- 1.0.73 — 2023-09-19
- 1.0.72 — 2023-04-29
- 1.0.70 — 2022-04-13
- 1.0.69 — 2021-12-06
- 1.0.68 — 2021-11-27
- 1.0.67 — 2021-11-27
- 1.0.66 — 2021-08-06
- … 121 more at https://npm.io/package/js-vextensions/versions

## README

# JS - VExtensions

Extensions for Javascript, by Venryx.

### Installation

```
npm install js-vextensions --save-exact
```

The `--save-exact` flag is recommended, since this package uses [Explicit Versioning](https://medium.com/sapioit/why-having-3-numbers-in-the-version-name-is-bad-92fc1f6bc73c) (`Release.Breaking.FeatureOrFix`) rather than SemVer (`Breaking.Feature.Fix`).

To let npm increment `FeatureOrFix` (recommended), prepend "`~`" to its version in `package.json`. (for `Breaking`, prepend "`^`")

### Using class methods/extensions

##### Approach 1: (as class methods/extensions)

Setup:
```
// To add the class-extension typings (so typescript knows the class/prototype contains those methods)
// /// <reference path="../node_modules/js-vextensions/Helpers/@ApplyCETypes.d.ts"/> // type import approach A
// import "js-vextensions/Helpers/@ApplyCETypes"; // type import approach B
type __ = typeof import("../node_modules/js-vextensions/Helpers/@ApplyCETypes"); // type import approach C (recommended)

// To actually add the methods to the class-prototype chain (so it works at runtime)
import "js-vextensions/Helpers/@ApplyCECode.js";
```

Usage:
```
const array = [1, 2, 3];
console.log(array.Skip(1)); // logs "2,3"
```

##### Approach 2.A: (using wrapper, with type specified)
```
const array = [1, 2, 3];
console.log(ArrayCE(array).Skip(1)); // logs "2,3"
```

##### Approach 2.B: (using wrapper, with type inferred)
```
const array = [1, 2, 3];
console.log(CE(array).Skip(1)); // logs "2,3"
```

##### Approach 3: (using standalone functions)
```
const array = [1, 2, 3];
console.log(ArrayCES.Skip(array, 1)); // logs "2,3"
```

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