{"name":"jsx-tree","version":"0.1.2","private":false,"description":"Analyze JSX files as a tree structure","keywords":["jsx","tsx","ast","tree","parser","analyzer"],"repository":{"type":"git","url":"git+https://github.com/doputer/jsx-tree.git"},"license":"MIT","author":{"name":"Kim Dohyeon","email":"swputer@gmail.com"},"main":"dist/index.js","types":"dist/index.d.ts","bin":{"jsx-tree":"bin/cli.js"},"scripts":{"build":"tsc && tsc-alias","dev":"npx ts-node -r tsconfig-paths/register src/index.ts"},"prettier":"./configs/prettier/index.js","dependencies":{"@babel/parser":"^7.27.0","@babel/traverse":"^7.27.0","@types/babel__traverse":"^7.20.7","chalk":"^4.1.2","commander":"^13.1.0","enhanced-resolve":"^5.18.1","tsconfig-paths":"^4.2.0"},"devDependencies":{"@types/node":"^22.14.1","@typescript-eslint/eslint-plugin":"^8.31.0","@typescript-eslint/parser":"^8.31.0","eslint":"^8.57.1","eslint-config-prettier":"^10.1.2","eslint-import-resolver-typescript":"^4.3.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","prettier":"^3.5.3","prettier-plugin-packagejson":"^2.5.10","ts-node":"^10.9.2","tsc-alias":"^1.8.15","typescript":"^5.8.3"},"_id":"jsx-tree@0.1.2","gitHead":"87fd95cc7d0fbb4d1e07bca02b950652e6e31051","bugs":{"url":"https://github.com/doputer/jsx-tree/issues"},"homepage":"https://github.com/doputer/jsx-tree#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-KwiQVJtAZjG40Lgs7We5YBC2+Tpd4r4NwDMGo/grnAxKaOvH8cQTHb1s+ux0DoXLvbEKoqypon/jzN0ze8ISyg==","shasum":"d459e8d4e3a53de26a4733427d2c29aa2c31ea94","tarball":"http://registry-npm.ywwl.com/jsx-tree/download/jsx-tree-0.1.2.tgz","fileCount":24,"unpackedSize":29115,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBuzKzXLuhRiyOGAwseqa100KjVP23uMUzMfmh9ZXPpZAiBdW/BY5NxF+xzYu9Jxivde9uXD2r7M3OfTIdU32CayQQ=="}],"size":8800,"noattachment":false,"key":"/jsx-tree/-/jsx-tree-0.1.2.tgz"},"_npmUser":{"name":"kimdohyeon","email":"swputer@gmail.com"},"directories":{},"maintainers":[{"name":"kimdohyeon","email":"swputer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jsx-tree_0.1.2_1745948559537_0.0347249729109429"},"_hasShrinkwrap":false,"readme":"## JSX-Tree\n\nA powerful tool to parse and visualize JSX/TSX files in a tree structure.\n\n### Features\n\n- Parse JSX/TSX files and display them in a readable tree structure\n- Filter by components only\n- Filter by HTML elements only\n- Include or exclude text nodes\n- Show file paths for components\n- Include or exclude specific tags\n- Control the displayed tree depth\n\n### Installation\n\n```bash\n# Install globally\nnpm install -g jsx-tree\n\n# Or use npx directly\nnpx jsx-tree [options] [file]\n```\n\n### Usage\n\n```bash\n# Basic usage\njsx-tree path/to/your-component.jsx\n\n# Alternative command\njt path/to/your-component.jsx\n```\n\n### Options\n\n```bash\nArguments:\n  file                          Path to the entry file (optional if using -e or default file exists)\n\nOptions:\n  -V, --version                 output the version number\n  -f, --entry <file>            Path to the entry file (default: ./index.jsx or ./index.tsx)\n  -c, --components-only         Display only component nodes (default: false)\n  -H, --html-only               Display only HTML tag nodes (default: false)\n  -t, --show-text               Display text nodes (default: false)\n  -p, --show-path               Display the file path for each node (default: false)\n  -i, --include-tags <tags...>  Include only specified tags or components\n  -e, --exclude-tags <tags...>  Exclude specified tags or components\n  -d, --depth <depth>           Limit the display depth of the tree\n  -h, --help                    display help for command\n```\n\n### Examples\n\nShow only components with file paths:\n\n```bash\njsx-tree --components-only --show-path src/App.jsx\n```\n\nShow HTML elements:\n\n```bash\njsx-tree --html-only src/components/Header.tsx\n```\n\nInclude text nodes and limit depth to 3:\n\n```bash\njsx-tree --show-text --depth 3 src/pages/Home.jsx\n```\n\nShow only Button and Card components:\n\n```bash\njsx-tree --include-tags Button Card src/ui/Components.jsx\n```\n\nExclude div and span tags:\n\n```bash\njsx-tree --exclude-tags div span src/layout/Main.jsx\n```\n\n### Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","publish_time":1745948559741,"_cnpm_publish_time":1745948559741,"dist-tags":{"latest":"0.1.2"}}