# batch-getter-setter

> A very useful class that many classes should extend from

Latest version **1.0.2** (published 2018-12-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install batch-getter-setter
pnpm add batch-getter-setter
yarn add batch-getter-setter
bun add batch-getter-setter
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-09 |
| First published | 2018-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | small, abstract, base, class |

## Links

- npm: https://www.npmjs.com/package/batch-getter-setter
- npm.io page: https://npm.io/package/batch-getter-setter

## Dependencies (1)

- [method-chainable](https://npm.io/package/method-chainable.md) ~1.0.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-12-09
- 1.0.1 — 2018-12-06
- 1.0.0 — 2018-09-21

## README

BatchGetterSetter is an abstract class with no properties of its own and one protected method:
_createGetterAndOrSetterForEach().  If you have a bunch of properties you want to create getter and/or
setter functions for, and they will all use the same repetitive code, place the names of each property
in an array of strings and pass that array into _createGetterAndOrSetterForEach(properties, configuration).
The configuration parameter is an object that you place a getter and/or setter function inside of.  This
will be the repetitive code called for each property.  Check the GetterSetterConfiguration interface
for more info.

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