{"name":"@putout/minify","version":"6.1.3","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout-based minifier","homepage":"https://github.com/putoutjs/minify#readme","exports":{".":"./bundle/minify.min.js","./dev":"./lib/minify.js"},"repository":{"type":"git","url":"git+https://github.com/putoutjs/minify.git"},"scripts":{"wisdom":"madrun wisdom","test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","coverage:html":"madrun coverage:html","report":"madrun report","build":"madrun build","build:stats":"madrun build:stats","minify":"madrun minify"},"keywords":["putout","minify","AST","babel","printer","api","traverse","generate"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/plugin-apply-optional-chaining":"^6.0.0","@putout/plugin-apply-shorthand-properties":"^7.2.0","@putout/plugin-apply-template-literals":"^5.0.0","@putout/plugin-arguments":"^2.1.0","@putout/plugin-conditions":"^9.0.2","@putout/plugin-convert-to-arrow-function":"^5.0.1","@putout/plugin-declare":"^8.4.0","@putout/plugin-destructuring":"^2.0.0","@putout/plugin-esm":"^10.0.0","@putout/plugin-for-of":"^12.0.0","@putout/plugin-logical-expressions":"^9.0.0","@putout/plugin-merge-destructuring-properties":"^12.3.0","@putout/plugin-merge-duplicate-functions":"^4.0.0","@putout/plugin-minify":"^12.0.1","@putout/plugin-new":"^5.0.0","@putout/plugin-promises":"^20.0.0","@putout/plugin-regexp":"^14.0.0","@putout/plugin-remove-console":"^7.0.0","@putout/plugin-remove-debugger":"^9.0.0","@putout/plugin-remove-empty":"^15.0.0","@putout/plugin-remove-nested-blocks":"^9.0.0","@putout/plugin-remove-unreachable-code":"^3.0.0","@putout/plugin-remove-unreferenced-variables":"^6.0.0","@putout/plugin-remove-unused-expressions":"^12.0.0","@putout/plugin-remove-useless-else":"^2.0.0","@putout/plugin-return":"^4.0.0","@putout/plugin-reuse-duplicate-init":"^8.0.0","@putout/plugin-simplify-ternary":"^9.0.0","@putout/plugin-spread":"^3.0.0","@putout/plugin-types":"^10.0.0","@putout/plugin-variables":"^2.2.0","@rollup/plugin-alias":"^6.0.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^16.0.0","@rollup/plugin-replace":"^6.0.1","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","fullstore":"^4.0.0","just-kebab-case":"^4.2.0","just-snake-case":"^3.2.0","madrun":"^13.0.0","minify":"^15.0.0","mock-require":"^3.0.3","montag":"^2.0.1","nodemon":"^3.0.1","putout":"^42.0.8","redlint":"^6.1.0","rollup":"^4.5.0","rollup-plugin-bundle-stats":"^4.21.6","rollup-plugin-node-externals":"^9.0.1","rollup-plugin-polyfill-node":"^0.13.0","superc8":"^12.2.4","supertape":"^13.2.0","try-catch":"^4.0.4"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"dependencies":{},"_id":"@putout/minify@6.1.3","gitHead":"ad53f46b5c6ee4e5daf6e2c406ff31b1bf70597c","bugs":{"url":"https://github.com/putoutjs/minify/issues"},"_nodeVersion":"26.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-IT9N+aXfOuTfpr9b5HjjRT1uDNUOYQrmFahKO/CBrYGRrzIgeZjrLSROvSbIAzHiy945jvQ4rygR563IZljpag==","shasum":"815f7d0484553bef4fcdea58e1a4dfbc8ce78eca","tarball":"http://registry-npm.ywwl.com/@putout/minify/download/@putout/minify-6.1.3.tgz","fileCount":4,"unpackedSize":1309696,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmba2nG4E1uo0iY5l4z9gUzfGMkQGoAFX2y87BJr9qkQIgO7PA6o/KDW9Ig4IuG/vFEzhP7Kc+yrBtryq0JHA1Np4="}],"size":348727,"noattachment":false,"key":"/@putout/minify/-/@putout/minify-6.1.3.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/minify_6.1.3_1784467882729_0.04515651813157051"},"_hasShrinkwrap":false,"readme":"# @putout/minify [![NPM version][NPMIMGURL]][NPMURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/minify.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/minify \"npm\"\n[CoverageURL]: https://coveralls.io/github/putoutjs/minify?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/putoutjs/minify/badge.svg?branch=master&service=github\n\n🐊[**Putout**](https://github.com/coderaiser/putout)-based JavaScript minifier.\n\n## Install\n\n```sh\nnpm i @putout/minify\n```\n\n## Supported minifier transforms\n\nHere is list of supported 🐊**Putout** transformations:\n\n- ✅ [`apply-template-literals`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-apply-template-literals#readme);\n- ✅ [`apply-optional-chaining`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-apply-optional-chaining#readme);\n- ✅ [`conditions`](https://github.com/coderaiser/putout/tree/v29.10.0/packages/plugin-conditions#readme);\n- ✅ [`convert-to-arrow-function`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-convert-to-arrow-functions#readme);\n- ✅ [`arguments`](https://github.com/coderaiser/putout/tree/v41/packages/plugin-argumentst#readme);\n- ✅ [`declare`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-declare#readme);\n- ✅ [`for-of`](https://github.com/coderaiser/putout/tree/v34.0.0/packages/plugin-for-of#readme);\n- ✅ [`logical-expressions`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-logical-expressions#readme);\n- ✅ [`merge-duplicate-functions`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-merge-duplicate-functions#readme);\n- ✅ [`esm/merge-duplicate-imports`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-esm#merge-duplicate-imports);\n- ✅ [`destructuring`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-destructuring#readme);\n- ✅ [`minify`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-minify#readme);\n- ✅ [`new`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-new#readme);\n- ✅ [`regexp`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-regexp#readme);\n- ✅ [`reuse-duplicate-init`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-reuse-duplicate-init#readme);\n- ✅ [`remove-empty`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-empty#readme);\n- ✅ [`remove-nested-blocks`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-nested-blocks#readme);\n- ✅ [`remove-unused-expressions`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-unused-expressions#readme);\n- ✅ [`arguments`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-arguments#readme);\n- ✅ [`remove-useless-else`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-else#readme);\n- ✅ [`return/remove-useless`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-return#remove-useless);\n- ✅ [`remove-useless-spread`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-useless-spread/#readme);\n- ✅ [`variables`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-variables#readme);\n- ✅ [`remove-console`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-console#readme);\n- ✅ [`remove-debugger`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-debugger#readme);\n- ✅ [`remove-unreachable-code`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-unreachable-code#readme);\n- ✅ [`simplify-ternary`](https://github.com/coderaiser/putout/tree/v34.0.0/packages/plugin-simplify-ternary#readme);\n- ✅ [`types`](https://github.com/coderaiser/putout/tree/v29.7.1/packages/plugin-types#readme);\n\n## API\n\n```js\nimport {minify} from '@putout/minify';\n\nminify(`\n    const a = 5;\n    const b = 6;\n    \n    fn(a, b);\n`);\n```\n\n```zig\n// returns\nvar a=5,b=6;fn(a,b);\n```\n\n### Options\n\nYou can also pass options to `minify`. Here is list of default options:\n\n```js\n({\n    quotes: `'`,\n    fixCount: 1, // the more fixCount - less output size\n    conditions: false,\n    mangleClassNames: true,\n    mangle: true,\n    mergeVariables: true,\n    removeUnusedVariables: false,\n    removeConsole: false,\n    removeUselessSpread: true,\n    applyTemplateLiterals: true,\n    convertStrictEqualToEqual: false,\n});\n```\n\nAnd usage example:\n\n```js\nimport {minify} from '@putout/minify';\n\nconst source = `\n    const a = 5;\n    const b = 6;\n`;\n\nminify(source, {\n    removeUnusedVariables: false,\n});\n```\n\n### How it's compared to X(your benchmark)?\n\n[Benchmark](https://github.com/putoutjs/minify/tree/master/benchmark)\n\n## License\n\nMIT\n","publish_time":1784467882874,"_cnpm_publish_time":1784467882874,"dist-tags":{"latest":"6.1.3"}}