Asu is a library to work with subtitles on ASS format.
asu-go2js is a port of Asu (originally for .NET) written in Go and compiled to JavaScript with TypeScript support.
-
Go 1.17.9
-
Node.js 16.13.1
-
Yarn 1.22.5
-
GopherJS 1.17.0
go install github.com/gopherjs/gopherjs@latest
-
GNU Make 4.2.1
# Compile Go to JavaScript
make build
# Run both Go and JavaScript tests
make test
go
: Go source code.
go/exports
: GopherJS exports.
js
: JavaScript source code.
js/dist
: JavaScript files produced by GopherJS targeting Node.js and Deno runtimes.
js/dist/asu.d.ts
: manually written type definitions.
js/dist/browser
: JavaScript files compiled by esbuild targeting browsers.
js/tests
: JavaScript tests targeting js/dist
.