https://github.com/total-typescript/shiki-service
https://github.com/total-typescript/shiki-service
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/total-typescript/shiki-service
- Owner: total-typescript
- Created: 2023-05-31T08:08:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T23:47:12.000Z (about 1 year ago)
- Last Synced: 2025-03-20T14:40:32.026Z (3 months ago)
- Language: TypeScript
- Size: 296 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.