# yuku-codegen

> A fast code generator for any ESTree / TypeScript-ESTree AST, with type stripping, minification, and source maps

Latest version **0.17.0** (published 2026-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install yuku-codegen
pnpm add yuku-codegen
yarn add yuku-codegen
bun add yuku-codegen
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.17.0 |
| Published | 2026-10-02 |
| First published | 2026-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.18.0 |
| Dependencies | 1 |
| Unpacked size | 141.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 945 |
| Maintainers | arshadyaseen |
| Keywords | ast, codegen, estree, printer, minifier, sourcemap, typescript, javascript, yuku |

## Links

- npm: https://www.npmjs.com/package/yuku-codegen
- Repository: https://github.com/yuku-toolchain/yuku
- Homepage: https://github.com/yuku-toolchain/yuku#readme
- Issues: https://github.com/yuku-toolchain/yuku/issues
- npm.io page: https://npm.io/package/yuku-codegen

## Dependencies (1)

- [@yuku-toolchain/types](https://npm.io/package/@yuku-toolchain/types.md) ^0.17.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.17.0 (latest) — 2026-10-02
- 0.15.1 — 2026-10-02
- 0.15.0 — 2026-10-01
- 0.14.0 — 2026-09-30
- 0.13.0 — 2026-09-29
- 0.12.0 — 2026-09-27
- 0.11.0 — 2026-09-24
- 0.10.2 — 2026-09-16
- 0.10.1 — 2026-09-11
- 0.10.0 — 2026-09-10
- 0.9.5 — 2026-09-08
- 0.9.4 — 2026-09-05
- 0.9.3 — 2026-08-27
- 0.9.1 — 2026-08-23
- 0.9.0 — 2026-08-17
- … 57 more at https://npm.io/package/yuku-codegen/versions

## README

<!-- markdownlint-disable first-line-h1 -->

<!-- markdownlint-start-capture -->
<!-- markdownlint-disable-file no-inline-html -->
<div align="center">

  <!-- markdownlint-disable-next-line no-alt-text -->
  <img src="docs/assets/logo.svg" alt="Logo" width="300" />
  
  <br>
  <br>

[![NPM Version](https://img.shields.io/npm/v/yuku-parser?logo=npm&logoColor=212121&label=version&labelColor=ffc44e&color=212121)](https://npmjs.com/package/yuku-parser)
[![NPM Downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Farshad-yaseen%2Fstatic%2Fmain%2Fbadges%2Fyuku-downloads.json&logo=npm&logoColor=212121&labelColor=ffc44e&color=212121)](https://npmtrends.com/yuku-analyzer-vs-yuku-codegen-vs-yuku-parser)
[![sponsor](https://img.shields.io/badge/sponsor-EA4AAA?logo=githubsponsors&labelColor=FAFAFA)](https://github.com/sponsors/arshad-yaseen)

Yuku is a high-performance JavaScript and TypeScript compiler toolchain written in Zig. Spec-compliant, zero dependencies, fast by design.

[Try it in the playground →](https://playground.yuku.fyi)

</div>

## Documentation

Visit [yuku.fyi](https://yuku.fyi) for the documentation.

## Packages

| Package                                     | For                                              |
| ------------------------------------------- | ------------------------------------------------ |
| [`yuku-parser`](npm/yuku-parser)            | Parsing to an ESTree / TypeScript-ESTree AST     |
| [`yuku-analyzer`](npm/yuku-analyzer)        | Scopes, bindings, references, and module linking |
| [`yuku-codegen`](npm/yuku-codegen)          | Printing an AST back to source, with source maps |

Each package documents its API in its README. From Zig, add the `parser` module as described in the [documentation](https://yuku.fyi/#zig).

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, testing, and playground instructions. Report security vulnerabilities privately, as described in [SECURITY.md](SECURITY.md).

## License

Yuku is free and open-source software licensed under the [MIT License](LICENSE).

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