New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

## Installation

0.0.2
latest
npm
Version published
Weekly downloads
25
-67.95%
Maintainers
0
Weekly downloads
 
Created
Source

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()

Keywords

ast-grep

FAQs

Package last updated on 25 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts