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