A Node.js CLI tool (v1.1.1) for scanning project structures and minifying file contents into JSON, optimized for AI chat token savings. It offers two scanning modes: full (with configurable exclusions) and selective (specific files/dirs). Outputs minified JSON files for structure and code. No active development cadence indicated; it's a niche utility for preparing codebases for LLM context windows. Compared to alternatives like repomix or code2prompt, it has fewer features but a simpler interactive workflow with .gitignore awareness.
npm install project-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage of the two main functions to build project structure and minify code.
Use import syntax or switch to dynamic import() if using CommonJS.
Use programmatic API (buildStructureJSON, minifyCode) with predefined arguments or mock stdin.
Define scripts in package.json as shown in README.
Always pass arrays as arguments to buildStructureJSON.
Use import syntax or dynamic import()
Use named import: import { buildStructureJSON } from 'project-minifier'npm install glob