A zero-config CLI tool that minifies a project's package.json by removing whitespace and comments, moving the result to dist/package.json. It also strips the 'files' field under the assumption that all necessary files are already copied into the dist directory. Version 0.0.4 is the latest, with no active development observed. Use with caution as it may remove fields you depend on. Ideal for build pipelines where a lean package.json is needed for published artifacts.
npm install package.json-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to invoke the tool via npx. It minifies package.json and removes the 'files' field, outputting to dist/package.json.
If you need the 'files' field, manually add it back after minification or avoid using this tool.
Consider using an alternative like json-minify or implement your own minification.
For full-featured JSON minification, use a general JSON minifier instead.
Use npx package.json-minifier or install globally with npm install -g package.json-minifier
Run npx package.json-minifier from terminal, not import in code.
No dependency data recorded yet.