npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mxyhi/tsgo

v2025.4.15-0

Published

typescript-go npm release(unofficial)

Downloads

7,576

Readme

TypeScript-Go 非官方 NPM 包

English Documentation

本包提供了 Microsoft 的 TypeScript-Go 项目的非官方 NPM 发行版,该项目是 TypeScript 的基于 Go 的移植版本。

⚠️ 重要提示

不是来自 TypeScript 团队的官方包。它仅作为测试和评估目的而发布。TypeScript-Go 项目仍在积极开发中,被视为实验性项目。

根据此讨论,官方团队目前没有计划发布 NPM 包,因为该项目仍然非常不完整。

为什么存在这个包

这个非官方包允许开发者:

  • 无需从源代码构建即可尝试 TypeScript-Go
  • 测试与现有工具的集成
  • 体验基于 Go 的 TypeScript 实现

安装

npm install @mxyhi/tsgo

使用方法

本包提供了 tsgo 二进制文件,其功能类似于 tsc

# 检查 TypeScript 文件(类似于 tsc)
npx tsgo tsc path/to/file.ts

# 使用 tsconfig.json 文件
npx tsgo tsc --project path/to/tsconfig.json

对于 LSP(语言服务器协议)的使用,请参考官方仓库获取设置说明。

构建计划

该包每 6 小时自动构建并发布一次,在 UTC 时间的 00:00、06:00、12:00 和 18:00。每次构建都包括 TypeScript-Go 仓库的最新更改。

当前限制

如官方仓库所述,TypeScript-Go 仍在开发中,许多功能尚未完成。当前限制包括:

  • 不支持所有解析模式
  • JavaScript 特定的推断和 JSDoc 尚未准备就绪
  • JSX 支持尚未准备就绪
  • 声明生成尚未准备就绪
  • 生成(JS 输出)正在进行中(仅良好支持 target: esnext
  • 监视模式仅为原型
  • 构建模式/项目引用尚未准备就绪
  • 增量构建尚未准备就绪
  • 语言服务(LSP)仅为原型,具有最小功能

更新

随着 TypeScript-Go 仓库取得重大进展,这个非官方包将定期更新。当官方团队决定发布官方包时,这个非官方包将被弃用,转而支持官方包。

贡献

对于与 TypeScript-Go 本身相关的问题,请在官方仓库中提交。

对于特定于此 NPM 包发行版的问题,请在 https://github.com/mxyhi/tsgo-npm-release 中提交。

许可证

TypeScript 项目采用 Apache License 2.0 许可。