{"name":"jsx-tree","version":"0.1.1","keywords":["jsx","tsx","ast","tree","parser","analyzer"],"author":{"name":"Kim Dohyeon","email":"swputer@gmail.com"},"license":"MIT","_id":"jsx-tree@0.1.1","maintainers":[{"name":"kimdohyeon","email":"swputer@gmail.com"}],"homepage":"https://github.com/doputer/jsx-tree#readme","bugs":{"url":"https://github.com/doputer/jsx-tree/issues"},"bin":{"jsx-tree":"bin/cli.js"},"dist":{"shasum":"e853cebe29a53fd41d485c29efa87ee6f970d8ba","tarball":"http://registry-npm.ywwl.com/jsx-tree/download/jsx-tree-0.1.1.tgz","fileCount":24,"integrity":"sha512-ZPazhs95EVQa9uvVVguIEa6pkZVqed7WrjAZ7qcCzOnOL2+DsyGUHrtWiTYg+U8/0+6zkULOVN3ZBmKupeglHw==","signatures":[{"sig":"MEYCIQCpMoDUZLpA2RqPznsyFmrUYOvEwVOf0+6Yn4EIm1/wJwIhAKReKiHSJqXjmqHH7tQ7ZEa5XjZd86KJ5/Va34xoPxPR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28088,"size":8535,"noattachment":false,"key":"/jsx-tree/-/jsx-tree-0.1.1.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a680f69c834f6187382a41da6707508066fa0325","private":false,"scripts":{"dev":"npx ts-node -r tsconfig-paths/register src/index.ts","build":"tsc && tsc-alias"},"_npmUser":{"name":"kimdohyeon","email":"swputer@gmail.com"},"prettier":"./configs/prettier/index.js","repository":{"url":"git+https://github.com/doputer/jsx-tree.git","type":"git"},"_npmVersion":"10.2.4","description":"Analyze JSX files as a tree structure","directories":{},"_nodeVersion":"20.11.1","dependencies":{"chalk":"^4.1.2","commander":"^13.1.0","@babel/parser":"^7.27.0","tsconfig-paths":"^4.2.0","@babel/traverse":"^7.27.0","enhanced-resolve":"^5.18.1","@types/babel__traverse":"^7.20.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","ts-node":"^10.9.2","prettier":"^3.5.3","tsc-alias":"^1.8.15","typescript":"^5.8.3","@types/node":"^22.14.1","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.31.0","prettier-plugin-packagejson":"^2.5.10","@typescript-eslint/eslint-plugin":"^8.31.0","eslint-import-resolver-typescript":"^4.3.4"},"_npmOperationalInternal":{"tmp":"tmp/jsx-tree_0.1.1_1745858566550_0.2411457604082543","host":"s3://npm-registry-packages-npm-production"},"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":1745858566767,"_cnpm_publish_time":1745858566767,"dist-tags":{"latest":"0.1.2"}}