# do-declare

> Invoke your function when you declare it. aliases: "invoke"

Latest version **1.1.10** (published 2021-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install do-declare
pnpm add do-declare
yarn add do-declare
bun add do-declare
```

## 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.10 |
| Published | 2021-05-31 |
| First published | 2019-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Natan Farkash |
| Maintainers | natqe3 |
| Keywords | do, declare, do-declare, declare-do |

## Links

- npm: https://www.npmjs.com/package/do-declare
- Repository: https://github.com/natqe/utilizes
- Homepage: https://github.com/natqe/utilizes#readme
- Issues: https://github.com/natqe/utilizes/issues
- npm.io page: https://npm.io/package/do-declare

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.10 (latest) — 2021-05-31
- 1.1.9 — 2019-06-12
- 1.1.8 — 2019-01-20
- 1.1.6 — 2019-01-20
- 1.1.4 — 2019-01-19
- 1.1.3 — 2019-01-15
- 1.1.2 — 2019-01-15
- 1.1.0 — 2019-01-15
- 1.0.11 — 2019-01-15
- 1.0.4 — 2019-01-14
- 1.0.3 — 2019-01-13
- 1.0.2 — 2019-01-13
- 1.0.1 — 2019-01-13

## README

# doDeclare

Invoke your function when you declare it.

aliases: "invoke"

**Usage:** `doDeclare(func: Function, args?: Array): Function`

```typescript
import { doDeclare } from 'do-declare'

const func = doDeclare(()=> console.log(123))
// Output: 123
func()
// Output: 123
```

<!-- *keywords [] *keywordsend -->


This module exported from [utilizes](https://www.npmjs.com/package/utilizes) project.

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