{"_id":"adevar-move","_rev":"3-cf48ca38baa1ef65333c59cf74d91739","name":"adevar-move","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"adevar-move","version":"1.0.0","keywords":["move","audit","cli","scope","blockchain","aptos","sui","lines-of-code","adevar"],"author":{"name":"0xnirlin"},"license":"MIT","_id":"adevar-move@1.0.0","maintainers":[{"name":"nirlin","email":"0xnirlin@gmail.com"}],"homepage":"https://github.com/0xnirlin/adevar-move#readme","bugs":{"url":"https://github.com/0xnirlin/adevar-move/issues"},"bin":{"adevar-move":"index.js"},"dist":{"shasum":"ea75477d27ec5181666ebe064961cc892f991446","tarball":"https://registry.npmjs.org/adevar-move/-/adevar-move-1.0.0.tgz","fileCount":4,"integrity":"sha512-fxWTFwOW1C+hTl/oOo3cnnuonTS2RpWM7r/3vp46WVJqCXSXj5U2m5Kwgxx94tRwNo7IbQQArKar0668EEsdLw==","signatures":[{"sig":"MEQCIGZk54sstDXSl2FCuaUOCL8C6DK7l/90DdRNPu/Ps5vIAiAe7yxygRYQbtuBUslo4ZZ4rBVjvzXAXLAG/jE9ck+Amg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10779},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"ce66702efe5b9d79e5de544937acaa6199784bfe","scripts":{"start":"node index.js"},"_npmUser":{"name":"nirlin","email":"0xnirlin@gmail.com"},"repository":{"url":"git+https://github.com/0xnirlin/adevar-move.git","type":"git"},"_npmVersion":"11.3.0","description":"CLI tool to scope Move projects for auditing - counts lines of code excluding comments, blank lines, and test macros","directories":{},"_nodeVersion":"24.2.0","dependencies":{"commander":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adevar-move_1.0.0_1753869560193_0.8290571266096431","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"adevar-move","version":"1.0.1","keywords":["move","audit","cli","scope","blockchain","aptos","sui","lines-of-code","adevar"],"author":{"name":"0xnirlin"},"license":"MIT","_id":"adevar-move@1.0.1","maintainers":[{"name":"nirlin","email":"0xnirlin@gmail.com"}],"homepage":"https://github.com/AdevarLabs/adevar-move#readme","bugs":{"url":"https://github.com/AdevarLabs/adevar-move/issues"},"bin":{"adevar-move":"index.js"},"dist":{"shasum":"9a175b01118947e8eb8b762a505e98a3e1a04b1c","tarball":"https://registry.npmjs.org/adevar-move/-/adevar-move-1.0.1.tgz","fileCount":4,"integrity":"sha512-KhX29Gt3wiw4yWMp96EhTpP6q8UIq8FbyPSRy6EyVxcEj4aQG1w04XOxhufaQk4ZaF9kaNcNNL/SC1hb3qWfLw==","signatures":[{"sig":"MEUCIQDV5gSFotg7nJ3Jn87O3jQFORlfUE+Ncb9FvbgB6pBG6gIgcgG6g/VJZRAahiu1veoUu1wDXCEyXSMLso4W1q0lCh4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10787},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"a07cb8c01a0de0a6a89488199cbba780599f69fc","scripts":{"start":"node index.js"},"_npmUser":{"name":"nirlin","email":"0xnirlin@gmail.com"},"repository":{"url":"git+https://github.com/AdevarLabs/adevar-move.git","type":"git"},"_npmVersion":"11.3.0","description":"CLI tool to scope Move projects for auditing - counts lines of code excluding comments, blank lines, and test macros","directories":{},"_nodeVersion":"24.2.0","dependencies":{"commander":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adevar-move_1.0.1_1753871163720_0.32037083426933366","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"adevar-move","version":"1.0.2","description":"CLI tool to scope Move projects for auditing - counts lines of code excluding comments, blank lines, and test macros","main":"index.js","bin":{"adevar-move":"index.js"},"scripts":{"start":"node index.js"},"keywords":["move","audit","cli","scope","blockchain","aptos","sui","lines-of-code","adevar"],"author":{"name":"0xnirlin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AdevarLabs/adevar-move.git"},"homepage":"https://github.com/AdevarLabs/adevar-move#readme","bugs":{"url":"https://github.com/AdevarLabs/adevar-move/issues"},"engines":{"node":">=14.0.0"},"dependencies":{"commander":"^11.0.0"},"_id":"adevar-move@1.0.2","gitHead":"a07cb8c01a0de0a6a89488199cbba780599f69fc","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-Vx+HCJAiAOTPwA/ZidyO85clSET8yaXiXAhCM1INdz+Ot+aBpN88g/fHQt8r9ET9rmWxCAKn3ip4YF6i/GRgkQ==","shasum":"a0a339482d82f793f41d916ee2336c00f89ab9fd","tarball":"https://registry.npmjs.org/adevar-move/-/adevar-move-1.0.2.tgz","fileCount":5,"unpackedSize":11868,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG005xF5rpDHzrqOr5JmR3V9W1rIiNccDMl95w2XLoxLAiEAlUedsUfO0rUkdarrhsiRiPkWMnd8E7ADlVupNT4JyMQ="}]},"_npmUser":{"name":"nirlin","email":"0xnirlin@gmail.com"},"directories":{},"maintainers":[{"name":"nirlin","email":"0xnirlin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adevar-move_1.0.2_1753871197569_0.22477299132650064"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-30T09:59:20.191Z","modified":"2025-07-30T10:26:37.919Z","1.0.0":"2025-07-30T09:59:20.427Z","1.0.1":"2025-07-30T10:26:03.908Z","1.0.2":"2025-07-30T10:26:37.761Z"},"bugs":{"url":"https://github.com/AdevarLabs/adevar-move/issues"},"author":{"name":"0xnirlin"},"license":"MIT","homepage":"https://github.com/AdevarLabs/adevar-move#readme","keywords":["move","audit","cli","scope","blockchain","aptos","sui","lines-of-code","adevar"],"repository":{"type":"git","url":"git+https://github.com/AdevarLabs/adevar-move.git"},"description":"CLI tool to scope Move projects for auditing - counts lines of code excluding comments, blank lines, and test macros","maintainers":[{"name":"nirlin","email":"0xnirlin@gmail.com"}],"readme":"# Adevar Move\n\nA CLI tool to scope Move projects for auditing by counting lines of code, excluding comments, blank lines, and test macros.\n\n## Features\n\n- 🔍 Recursively scans directories for `.move` files\n- 📊 Counts lines of code excluding:\n  - Single-line comments (`//`)\n  - Block comments (`/* */`)\n  - Blank lines and whitespace-only lines\n  - Test code within `#[test]` and `#[test_only]` macros\n- 📋 Outputs a formatted table with individual file stats and totals\n- 🎯 Perfect for audit scoping and project analysis\n\n## Installation\n\n### Global Installation (Recommended)\n\n```bash\nnpm install -g adevar-move\n```\n\n### Local Installation\n\n```bash\nnpm install adevar-move\n```\n\n## Usage\n\n### Command Line\n\n```bash\n# Analyze current directory\nadevar-move\n\n# Analyze specific directory\nadevar-move /path/to/move/project\n\n# Examples\nadevar-move ./contracts\nadevar-move ../my-move-project\n```\n\n### Programmatic Usage\n\n```javascript\nconst { analyzeProject } = require('adevar-move');\n\nconst result = analyzeProject('/path/to/move/project');\nconsole.log(`Total LOC: ${result.totalLOC}`);\nconsole.log(`Files: ${result.totalFiles}`);\n```\n\n## Output Example\n\n```\n📊 Move Project Audit Scope Analysis\n\n┌─────────────────────────────────────────────────────────────────────┬─────────────┐\n│ File                                                                    │ Lines of Code │\n├─────────────────────────────────────────────────────────────────────┼─────────────┤\n│ sources/token.move                                                    │         150 │\n│ sources/marketplace.move                                              │         200 │\n│ sources/governance/voting.move                                        │         120 │\n├─────────────────────────────────────────────────────────────────────┼─────────────┤\n│ TOTAL                                                                 │         470 │\n└─────────────────────────────────────────────────────────────────────┴─────────────┘\n\nSummary: 3 files, 470 total lines of code\n```\n\n## What Gets Excluded\n\n### Comments\n```move\n// This single-line comment is excluded\n/* This block comment \n   is also excluded */\nmodule example {\n    // This is excluded\n    public fun valid_code() { } // This line counts as 1 LOC\n}\n```\n\n### Test Macros\n```move\n#[test]\nfun test_function() {\n    // This entire function is excluded from LOC count\n    assert!(true, 0);\n}\n\n#[test_only]\nmodule test_helpers {\n    // This entire module is excluded\n}\n```\n\n### Blank Lines\n```move\nmodule example {\n\n    // Empty lines above and below are excluded\n\n    public fun function() { } // This counts as 1 LOC\n}\n```\n\n## Requirements\n\n- Node.js >= 14.0.0\n- Works on Windows, macOS, and Linux\n\n## Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/AdevarLabs/adevar-move.git\ncd adevar-move\n\n# Install dependencies\nnpm install\n\n# Run locally\nnode index.js /path/to/test/project\n```\n\n## License\n\nMIT\n\n## Contributing\n\nPull requests are welcome! Please feel free to submit issues and enhancement requests.\n\n## Changelog\n\n### 1.0.0\n- Initial release\n- Basic Move file scanning and LOC counting\n- Comment and test macro exclusion\n- Formatted table output","readmeFilename":"README.md"}