Back to Home
haritha8503 icon

langextract

Verified Safe

by haritha8503

Overview

This Rust program uses Tree-sitter to parse source code files across multiple languages (e.g., TypeScript, Python, Rust, JavaScript, HTML, CSS, JSON, Markdown) and extract string literals, providing their value, line, and column.

Installation

Run Command
cargo run -- -f /path/to/your/file.rs

Security Notes

The project is a local command-line interface (CLI) tool for source code analysis using the tree-sitter library. It processes local files based on user-provided paths and extracts string literals. No 'eval' or similar dangerous dynamic code execution patterns were found. There are no obvious network risks, hardcoded secrets, or malicious patterns. The 'unsafe' blocks are used for Foreign Function Interface (FFI) to load tree-sitter language grammars, which is standard practice for this library and considered justified for its intended use. Direct security risks are minimal for a standalone tool, as it primarily operates on local files provided by the user.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens10000
Stars0
Forks0
Last Update2026-01-19

Tags

Code analysisString extractionTree-sitterSource codeDeveloper tool