0.0.2 • Published 2 years ago

treelight v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Treelight

Tree-sitter based syntax highlighter for javascript runtimes. Uses helix queries and themes under the hood.

Usage

Install treelight using npm:

npm i treelight

In your code:

import { highlight } from 'treelight';

const code = highlight(`console.info("Hello World!")`, 'ts');

console.info(code);
0.0.2

2 years ago

0.0.1

2 years ago