Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fs-frost/asu-go2js
Asu is a library to work with subtitles on ASS format.
https://github.com/fs-frost/asu-go2js
ass-subtitles golang gopherjs javascript library typescript
Last synced: 19 days ago
JSON representation
Asu is a library to work with subtitles on ASS format.
- Host: GitHub
- URL: https://github.com/fs-frost/asu-go2js
- Owner: FS-Frost
- Created: 2022-01-01T20:30:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T01:53:32.000Z (over 2 years ago)
- Last Synced: 2023-08-31T03:56:18.586Z (over 1 year ago)
- Topics: ass-subtitles, golang, gopherjs, javascript, library, typescript
- Language: Go
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asu-go2js
[![Run tests](https://github.com/FS-Frost/asu-go2js/actions/workflows/main.yml/badge.svg)](https://github.com/FS-Frost/asu-go2js/actions/workflows/main.yml)
Asu is a library to work with subtitles on [ASS format](https://en.wikipedia.org/wiki/SubStation_Alpha).
asu-go2js is a port of [Asu](https://github.com/FS-Frost/Asu.Utilidades) (originally for .NET) written in Go and compiled to JavaScript with TypeScript support.
## Requeriments
- [Go](https://go.dev) 1.17.9
- [Node.js](https://nodejs.org) 16.13.1
- [Yarn](https://classic.yarnpkg.com) 1.22.5
- [GopherJS](https://github.com/gopherjs/gopherjs) 1.17.0```shell
go install github.com/gopherjs/gopherjs@latest
```- [GNU Make](https://www.gnu.org/software/make) 4.2.1
## Main make commands
```shell
# Compile Go to JavaScript
make build# Run both Go and JavaScript tests
make test
```## Folder structure
`go`: Go source code.
`go/exports`: GopherJS exports.
`js`: JavaScript source code.
`js/dist`: JavaScript files produced by GopherJS targeting [Node.js](https://nodejs.org) and [Deno](https://deno.land) runtimes.
`js/dist/asu.d.ts`: manually written type definitions.
`js/dist/browser`: JavaScript files compiled by [esbuild](https://esbuild.github.io) targeting browsers.
`js/tests`: JavaScript tests targeting `js/dist`.