@ast-grep/lang-html
v0.0.4
Published
## Installation
Downloads
4,421
Maintainers
Readme
ast-grep napi language for html
Installation
In a pnpm project, run:
pnpm install @ast-grep/lang-html
pnpm install @ast-grep/napi
# install the tree-sitter-cli if no prebuild is available
pnpm install @tree-sitter/cli --save-devUsage
import html from '@ast-grep/lang-html'
import { registerDynamicLanguage, parse } from '@ast-grep/napi'
registerDynamicLanguage({ html })
const sg = parse('html', `your code`)
sg.root().kind()