
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@mintlify/grove
Advanced tools
Universal AST parser built on Tree-sitter for node
import parser from '@mintlify/grove'
const code = 'print("Hello world")'
const languageId = 'python'
const parsed = parser(code, languageId) // get parsed AST
See the interactive demo for more information
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install command:
$ npm install @mintlify/grove
In order to use Grove, you have the build from the Rust dependency setup so it properly works for your operating system
$ npm install cargo-cp-artifact --save-dev
$ cd ./node_modules/@mintlify/grove/parser && npm run build
When deploying to production, make sure to run the above command during the build process
Import the package
import parser from '@mintlify/grove'
Pass in the code and language identifier as strings
const parsed = parser(code, languageId)
Currently Grove supports the following languages
| Language | Identifier |
|---|---|
| JavaScript | javascript |
| TypeScript | typescript |
| Python | python |
| PHP | php |
| React JSX | javascriptreact |
| React TSX | typescriptreact |
| Ruby | ruby |
| Rust | rust |
| Java | java |
| Kotlin | kotlin |
| C | c |
| C++ | cpp |
| C# | csharp |
| Dart | dart |
| Go | go |
đźš§ More languages are under construction and grows in accordance with Tree-sitter's available parsers
Built with đź’š by the Mintlify team
FAQs
Universal AST parser built on Tree-sitter
The npm package @mintlify/grove receives a total of 35 weekly downloads. As such, @mintlify/grove popularity was classified as not popular.
We found that @mintlify/grove demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.