# 使用 Homebrew 安装 tscriptify

查看 tscriptify 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tscriptify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tscriptify
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tscriptify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tscriptify>
- **版本:** 0.2.0
- **来源摘要:** Golang struct to TypeScript class/interface converter
- **主页:** <https://github.com/tkrajina/typescriptify-golang-structs>
- **仓库:** <https://github.com/tkrajina/typescriptify-golang-structs>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/tkrajina/typescriptify-golang-structs/archive/refs/tags/v0.2.0.tar.gz>
- **最后更新:** 2026-07-26T00:51:28+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tscriptify (cli)
- tscriptify (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/tkrajina/typescriptify-golang-structs
- 检测到的最新版本: v0.2.0 (当前)
## 项目历史与用法

tscriptify is a small Go developer tool for generating TypeScript classes or interfaces from Go structs, especially structs whose JSON tags define API payload shapes.

### 项目历史

The project is published as tkrajina/typescriptify-golang-structs and describes itself as a Go JSON-to-TypeScript model converter. Its README documents both a command-line tool, installed with `go install github.com/tkrajina/typescriptify-golang-structs/tscriptify`, and a Go library package.

The official changelog records early 0.1.x work around custom types, enum generation, pointer handling, interface output, Go modules, packages with hyphens, TypeScript doc tags, and matrix testing. That history points to a focused utility maintained around practical Go-to-TypeScript model generation rather than a broad framework.

### 采用历史

Its package-manager footprint in this batch is Homebrew only, which fits the tool's niche: developers installing a small CLI when a Go backend and TypeScript frontend need matching model definitions.

### 使用方式

The README's main CLI pattern is `tscriptify -package=... -target=... Model1 Model2`, with optional import strings and support for converting all structs in a Go file. It can also be embedded through the Go API by constructing a converter and writing generated models to a TypeScript file.

The converter relies on Go struct fields with JSON tags, supports class and interface style output, handles custom TypeScript snippets, and exposes command-line options for package, target, and backup directory.

### 为什么软件包爱好者会关心

For package-manager users, tscriptify is the kind of narrow CLI that earns a formula because it removes build-step friction in polyglot Go and TypeScript projects. Its importance is practical rather than ecosystem-defining: install it, point it at backend structs, and keep frontend model definitions synchronized.

### 时间线

- 0.1.0: Changelog records simplified conversion, maps of objects, custom imports, pointer optional fields, and enum handling.
- 0.1.5: Changelog records Go module support and a JSON-to-TypeScript model shell-script example.
- 0.1.8-0.1.9: Changelog records TypeScript doc tags, handling fields without JSON tags, and matrix testing.

### Related projects

- The project sits in the Go code-generation family alongside tools that generate client models or API bindings from backend definitions, but its official documentation keeps the scope specifically to Go structs and TypeScript models.

### 来源

- <https://github.com/tkrajina/typescriptify-golang-structs#readme>
- <https://github.com/tkrajina/typescriptify-golang-structs/blob/master/CHANGELOG.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tscriptify
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [json2ts](https://pkg.so/zh-hans/brew/json2ts/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, typescript.
- [tygo](https://pkg.so/zh-hans/brew/tygo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, typescript.
- [fbthrift](https://pkg.so/zh-hans/brew/fbthrift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swig](https://pkg.so/zh-hans/brew/swig/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swiftgen](https://pkg.so/zh-hans/brew/swiftgen/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [sourcery](https://pkg.so/zh-hans/brew/sourcery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [buf](https://pkg.so/zh-hans/brew/buf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [thrift](https://pkg.so/zh-hans/brew/thrift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [prismic-ts-codegen](https://pkg.so/zh-hans/npm/prismic-ts-codegen/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/tscriptify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tscriptify.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
