Skip to content

Commit 8479412

Browse files
committed
📝 Add installation and usage to README.md
1 parent 2f39766 commit 8479412

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,18 @@
33
[![Node.js CI](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/node.js.yaml/badge.svg)](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/node.js.yaml) [![Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcoderabbitai.github.io%2Fast-grep-langs%2Fcoverage%2Fcoverage-summary.json&query=total.branches.pct&suffix=%25&logo=vitest&label=coverage&color=acd268)](https://coderabbitai.github.io/ast-grep-langs/coverage) [![GitHub Pages](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/github-pages.yaml/badge.svg)](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/github-pages.yaml) [![Dependabot Updates](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/coderabbitai/ast-grep-langs/actions/workflows/dependabot/dependabot-updates) ![CodeRabbit Reviews](https://img.shields.io/coderabbit/prs/github/coderabbitai/ast-grep-langs?utm_source=oss&utm_medium=github&utm_campaign=coderabbitai%2Fast-grep-langs&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
44

55
Exports all first-party ast-grep languages
6+
7+
## Installation
8+
9+
```sh
10+
pnpm i @coderabbitai/ast-grep-langs
11+
```
12+
13+
## Usage
14+
15+
```ts
16+
import { registerDynamicLanguage } from "@ast-grep/napi"
17+
import { langs } from "@coderabbitai/ast-grep-langs"
18+
19+
registerDynamicLanguage(langs)
20+
```

0 commit comments

Comments
 (0)