UNPKG

scanex

Version:

A powerful CLI tool that automatically discovers and bundles related source code into a single markdown file, perfect for sharing with LLMs like ChatGPT, Claude, or Cursor AI.

14 lines (11 loc) 378 B
import Parser from 'tree-sitter'; import JSON from 'tree-sitter-json'; const parser = new Parser(); parser.setLanguage(JSON); export const name = 'json'; export const exts = ['.json']; export function scan(src, { file }) { // JSON files don't have dependencies in the same way as code files. // We include them for bundling, but don't scan for more files. return []; }