Go typescript
Compile and run Typescript code natively in Go
This package provides a thin wrapper around [goja](https://github.com/dop251/goja) (a native Javascript runtime for Go). There are no direct dependencies besides goja, and [testify](https://github.com/stretchr/testify) (for testing only). This package supports the following features: * Typescript compilation and evaluation. * A context-aware evaluation API to support cancellation. * AMD-style modules using the built-in [Almond module loader](https://github.com/requirejs/almond). * Custom Typescr... The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2021. Key topics include: amd, evaluate, goja, module-loader, typescript.

This package provides a thin wrapper around goja (a native Javascript runtime for Go). There are no direct dependencies besides goja, and testify (for testing only). This package supports the following features:
- Typescript compilation and evaluation.
- A context-aware evaluation API to support cancellation.
- AMD-style modules using the built-in Almond module loader.
- Custom Typescript version registration with built-in support for versions 3.8.3, 3.9.9, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.2, 4.2.3, 4.2.4, and 4.7.2.
- 90%+ test coverage
- Used in production world-wide (sponsoring company has evaluated over 1 billion scripts using this runtime)
Installation
go get github.com/clarkmcc/go-typescript
Examples
Contributors
Showing top 3 contributors by commit count.
