@codemod.com/ast-grep-lang-json
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ast-grep napi language for json

Installation

In a pnpm project, run:

pnpm install tree-sitter-json
pnpm install @ast-grep/napi
# install the tree-sitter-cli if no prebuild is available
pnpm install @tree-sitter/cli --save-dev

Usage

import json from 'tree-sitter-json'
import { registerDynamicLanguage, parse } from '@ast-grep/napi'

registerDynamicLanguage({ json })

const sg = parse('json', `your code`)
sg.root().kind()

Readme

Keywords

Package Sidebar

Install

npm i @codemod.com/ast-grep-lang-json

Weekly Downloads

100

Version

0.0.2

License

ISC

Unpacked Size

136 kB

Total Files

16

Last publish

Collaborators

  • codemod-release-bot
  • alexbit
  • mohebifar