# js-class-extender

> Extend javascript classes

Latest version **0.0.1** (published 2022-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install js-class-extender
pnpm add js-class-extender
yarn add js-class-extender
bun add js-class-extender
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-02-18 |
| First published | 2022-02-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | oqamm |
| Maintainers | xcheez |
| Keywords | extender |

## Links

- npm: https://www.npmjs.com/package/js-class-extender
- npm.io page: https://npm.io/package/js-class-extender

## Recent versions

- 0.0.1 (latest) — 2022-02-18

## README

# How to use
```js
const { extend } = require("extender")
const Class = require("somewherethathasclasses")
const newClass = extend(Class, { newThing: "yes", newThing1: "yes1" })({ thing: 1 } /*options for the old class*/)
```
## And new class will come out as:
```js
{
	oldthing: "oldthing",
    secondoldthing: "oldthing2",
    newThing: "yes",
    newThing1: "yes1"
}
```

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