# @vue-macros/common

> common feature from Vue Macros.

Latest version **3.1.4** (published 2026-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vue-macros/common
pnpm add @vue-macros/common
yarn add @vue-macros/common
bun add @vue-macros/common
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.4 |
| Published | 2026-07-19 |
| First published | 2022-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.0 |
| Dependencies | 5 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1987 |
| Author | Kevin Deng |
| Maintainers | sxzz |
| Keywords | vue-macros, macros, vue, sfc, setup, script-setup, common |

## Links

- npm: https://www.npmjs.com/package/@vue-macros/common
- Repository: https://github.com/vue-macros/vue-macros
- Homepage: https://vue-macros.dev
- Issues: https://github.com/vue-macros/vue-macros/issues
- Funding: https://github.com/sponsors/vue-macros
- npm.io page: https://npm.io/package/@vue-macros/common

## Dependencies (5)

- [ast-kit](https://npm.io/package/ast-kit.md) ^2.1.2
- [local-pkg](https://npm.io/package/local-pkg.md) ^1.1.2
- [unplugin-utils](https://npm.io/package/unplugin-utils.md) ^0.3.0
- [magic-string-ast](https://npm.io/package/magic-string-ast.md) ^1.0.2
- [@vue/compiler-sfc](https://npm.io/package/@vue/compiler-sfc.md) ^3.5.22

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 3.1.4 (latest) — 2026-07-19
- 0.12.2-beta.1 (beta) — 2022-10-20
- 3.1.3 — 2026-07-12
- 3.1.2 — 2026-01-04
- 3.1.1 — 2025-09-25
- 3.1.0 — 2025-09-23
- 3.0.1 — 2025-09-23
- 3.0.0 — 2025-09-20
- 3.0.0-rc.0 — 2025-09-16
- 3.0.0-beta.23 — 2025-09-05
- 3.0.0-beta.22 — 2025-08-30
- 3.0.0-beta.21 — 2025-08-06
- 3.0.0-beta.20 — 2025-08-01
- 3.0.0-beta.19 — 2025-07-29
- 3.0.0-beta.18 — 2025-07-29
- … 88 more at https://npm.io/package/@vue-macros/common/versions

## README

<p align="center">
  <img src="./docs/public/logo.svg" width="200px" />
</p>

<h1 align="center">Vue Macros</h1>

<p align="center">Explore more macros and syntax sugar to Vue.</p>

<p align="center">
  <a href="https://npmjs.com/package/vue-macros">
    <img src="https://img.shields.io/npm/v/vue-macros.svg" alt="NPM version">
  </a>
</p>

## Features

- ✨ Explore more macros and syntax sugar to Vue.
- 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
- 🦾 Full TypeScript / Volar support.
- ⚡️ Supports most bundlers powered by [unplugin](https://github.com/unjs/unplugin).
  - Vite, Nuxt
  - Webpack, Rspack, Vue CLI
  - Rollup
  - esbuild
  - and more...

## Installation

```bash
npm i -D vue-macros
```

## Usage

[📜 Documentation](https://vue-macros.dev/)

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.wide.svg">
    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.wide.svg'/>
  </a>
</p>

## Contributors

💕 Thank you to all the contributors!

<p align="center">
  <a href="https://github.com/vue-macros/vue-macros/graphs/contributors">
    <img src="https://contrib.rocks/image?repo=vue-macros/vue-macros" />
  </a>
</p>

## Related Libraries

- [vue-functional-ref](https://github.com/sxzz/vue-functional-ref) - Functional-style refs for Vue.
- [Vue Vine](https://vue-vine.dev/) - Another style of writing Vue components.

## License

[MIT](./LICENSE) License © 2022-PRESENT [Kevin Deng](https://github.com/sxzz)

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