# @cat1989/decorator

> ```javascript function greeting() { console.log('Hello world!'); }

Latest version **1.1.0** (published 2022-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @cat1989/decorator
pnpm add @cat1989/decorator
yarn add @cat1989/decorator
bun add @cat1989/decorator
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-01-06 |
| First published | 2022-01-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | cat1989 |

## Links

- npm: https://www.npmjs.com/package/@cat1989/decorator
- Repository: https://github.com/cat1989/decorator
- Homepage: https://github.com/cat1989/decorator#readme
- Issues: https://github.com/cat1989/decorator/issues
- npm.io page: https://npm.io/package/@cat1989/decorator

## Recent versions

- 1.1.0 (latest) — 2022-01-06
- 1.0.0 — 2022-01-04

## README

## Decorator

```javascript
function greeting() {
	console.log('Hello world!');
}

const ms = 1000;
```

* Delaying decorator

```javascript
const wrapper = delay(greeting, ms);

wrapper();
```

* Debounce decorator

```javascript
const wrapper = debounce(greeting, ms);

wrapper();
```

* Throttle decorator

```javascript
const wrapper = throttle(greeting, ms);

wrapper();
```

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