Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 314 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 314 Bytes

Shiki Service

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

API

POST /v1/

Request

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

Response

Responds with html string.