An open API service indexing awesome lists of open source software.

https://github.com/total-typescript/shiki-service


https://github.com/total-typescript/shiki-service

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Shiki Service

This service provides an API to produce shiki-twoslash html for a given code snippet.

## API

### `POST /v1/`

#### Request

```json
{
"code": "const a = 1",
"lang": "ts",
"meta": "twoslash", // optional
"theme": "github-dark" // optional
}
```

#### Response

Responds with html string.