# @dwlib/internal-slot

> Internal Slot API

Latest version **1.0.0** (published 2022-05-06) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @dwlib/internal-slot
pnpm add @dwlib/internal-slot
yarn add @dwlib/internal-slot
bun add @dwlib/internal-slot
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-05-06 |
| First published | 2022-05-06 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 45.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pavel Wolf |
| Maintainers | pavelwolfdark |
| Keywords | internal, slot |

## Links

- npm: https://www.npmjs.com/package/@dwlib/internal-slot
- Repository: https://github.com/dwlib-js/internal-slot
- Homepage: https://github.com/dwlib-js/internal-slot#readme
- Issues: https://github.com/dwlib-js/internal-slot/issues
- npm.io page: https://npm.io/package/@dwlib/internal-slot

## Dependencies (2)

- [@dwlib/type](https://npm.io/package/@dwlib/type.md) ^1.0.0
- [@dwlib/intrinsic](https://npm.io/package/@dwlib/intrinsic.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2022-05-06

## README

# Internal Slot API

## Abstract
The module for implementing internal slots of the objects using encapsulation.

## Install
`npm i --save @dwlib/internal-slot`

## Usage
```javascript
// CJS
const InternalSlot = require('@dwlib/internal-slot');
const DeleteInternalSlot = require('@dwlib/internal-slot/DeleteInternalSlot');
const GetInternalSlot = require('@dwlib/internal-slot/GetInternalSlot');
const HasInternalSlot = require('@dwlib/internal-slot/HasInternalSlot');
const RequireInternalSlot = require('@dwlib/internal-slot/RequireInternalSlot');
const SetInternalSlot = require('@dwlib/internal-slot/SetInternalSlot');
// ESM
import InternalSlot, {
  DeleteInternalSlot,
  GetInternalSlot,
  HasInternalSlot,
  RequireInternalSlot,
  SetInternalSlot
} from '@dwlib/internal-slot';
import DeleteInternalSlot from '@dwlib/internal-slot/DeleteInternalSlot';
import GetInternalSlot from '@dwlib/internal-slot/GetInternalSlot';
import HasInternalSlot from '@dwlib/internal-slot/HasInternalSlot';
import RequireInternalSlot from '@dwlib/internal-slot/RequireInternalSlot';
import SetInternalSlot from '@dwlib/internal-slot/SetInternalSlot';
```

## API
- *static class* InternalSlot
  - *static* delete(target, internalSlot)
  - *static* get(target, internalSlot)
  - *static* has(target, internalSlot)
  - *static* require(target, internalSlot)
  - *static* set(target, internalSlot)

### Builtins
- DeleteInternalSlot(target, internalSlot)
- GetInternalSlot(target, internalSlot)
- HasInternalSlot(target, internalSlot)
- RequireInternalSlot(target, internalSlot)
- SetInternalSlot(target, internalSlot)

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