# func

Latest version **3.0.1** (published 2026-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install func
pnpm add func
yarn add func
bun add func
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2026-08-19 |
| First published | 2012-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=24.15.0 |
| Dependencies | 1 |
| Unpacked size | 323.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 411 |
| Maintainers | echo_unix |
| Keywords | command, cli-framework, command-line-tool |

## Links

- npm: https://www.npmjs.com/package/func
- Repository: https://github.com/unix/func
- npm.io page: https://npm.io/package/func

## Dependencies (1)

- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.2.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2026-08-19
- 3.0.0-canary.6 (canary) — 2026-08-19
- 3.0.0 — 2026-08-19
- 3.0.0-canary.5 — 2026-08-19
- 3.0.0-canary.4 — 2026-08-19
- 3.0.0-canary.3 — 2026-08-18
- 3.0.0-canary.2 — 2026-08-17
- 3.0.0-canary.1 — 2026-08-17
- 2.3.1 — 2026-08-08
- 2.3.0 — 2026-08-07
- 2.2.2 — 2026-08-07
- 2.2.1 — 2026-08-07
- 2.2.0 — 2026-06-06
- 2.1.1 — 2026-06-05
- 2.1.0 — 2026-06-03
- … 19 more at https://npm.io/package/func/versions

## README

<p align="center">
  <img
    src="https://raw.githubusercontent.com/unix/func/master/demo.png"
    width="640"
    alt="func"
  />
</p>

<h1 align="center">func</h1>

<p align="center">Build CLIs like TypeScript applications.</p>

<p align="center">
  A lightweight CLI framework with decorators, runtime validation, services, and
  production tooling.
</p>

<p align="center">
  <a href="https://func.witt.im">Documentation</a> ·
  <a href="https://func.witt.im/guide">Quick Start</a> ·
  <a href="https://func.witt.im/zh-cn">中文文档</a>
</p>

```sh
npm init func
```

## Thanks

Thanks to [Shannon Moeller](https://github.com/shannonmoeller) for donating the
package name `func` on npm.

## License

[MIT](./LICENSE)

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