{"_id":"@1-/fix","_rev":"11-26ecdf441a897882a3888a9722354c03","name":"@1-/fix","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"@1-/fix","version":"0.1.0","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.0","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"src/fix.js"},"dist":{"shasum":"409ce2da34389d47f9cc67c2f94b9210be79f515","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.0.tgz","fileCount":16,"integrity":"sha512-7jnlxOawayMWgm74dueSzMkC4jLq9NKNnUXokNoIJw2Pp+z6uy0dIyuXv537aiurifulM3lFpL9zxDDJ6rMgPw==","signatures":[{"sig":"MEQCIDp/CxmY+LQok7uYCMVgzvjVL0rnXcsLaawWth5EVhwXAiBQ9HhX6++lIyj/RGUryO5eJmfMU71ucQXvfBCWf6RUsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22390},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.13.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","_hasShrinkwrap":false,"peerDependencies":{"oxfmt":"^0.54.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.135.0","@1-/findgit":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.0_1780986078208_0.235668114218768","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@1-/fix","version":"0.1.1","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.1","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"src/fix.js"},"dist":{"shasum":"df18cd5b3167d7df262b8c921805e173d2a0b0e7","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.1.tgz","fileCount":16,"integrity":"sha512-Yaly+Iz/+MVKR9JBTBKQ+iaSX7rkcUGEFQXjC2XAHWvJwEVLz/DAIkUxK69FoUjzOQ8By+dkZUbBBmc/OXoOyg==","signatures":[{"sig":"MEYCIQCl54KScXUS1rSMy3v7jBS1ALDpzDX0jQR53m6N9Z2lcwIhAKR/Tr59BtEGK3z+o9rrYnlTWKFZC9mu07LtXNwrnhIW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22290},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.13.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","_hasShrinkwrap":false,"peerDependencies":{"oxfmt":"^0.54.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.135.0","@1-/findgit":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.1_1780986241908_0.2796491872584044","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@1-/fix","version":"0.1.2","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.2","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"src/fix.js"},"dist":{"shasum":"3f0f8413dcae7652f6d096d164f4e938265c108a","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.2.tgz","fileCount":16,"integrity":"sha512-Dl+qo+IobB3lOFl1qyxDZdbg1hqD3XBzc0sxFV/4laANP2NnNv57NhQKpLJrpw1f6gXUJUhkUWe1uZADz/iRwQ==","signatures":[{"sig":"MEUCID9c0s6M9bpN7L0Ii44vSKCaHTUG3WB1iHSWPqDhWr3+AiEAinaaCAUBEl/zMdbn79R3vG3PONifkcykssz6OVecNfI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21967},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.13.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","_hasShrinkwrap":false,"peerDependencies":{"oxfmt":"^0.54.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.135.0","@1-/findgit":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.2_1780986528232_0.7052453929743852","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@1-/fix","version":"0.1.3","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.3","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"b488a2dbce9ba77b6698b624d2284264eb04433b","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.3.tgz","fileCount":16,"integrity":"sha512-8cDGomT1tTBqDQsbibLQRIZ/bZPLEA5zHr7cC+FzfA2SIuByZ4iy+YD+Eosn9260Y9exrR1QYPgxSobyg0qy6A==","signatures":[{"sig":"MEYCIQCTJXRIrDfTHB6lNC6MIc4wiJqLC7hO2JdRrZ9E0o03HgIhAIQ+ORKPaQS6dBGd/4d6OrsJ8hL2PeKlYU9sxuYXufV6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21936},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.13.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","_hasShrinkwrap":false,"peerDependencies":{"oxfmt":"^0.54.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.135.0","@1-/findgit":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.3_1780987538531_0.34052969869072847","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@1-/fix","version":"0.1.4","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.4","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"929dbc07c0d8370f28535d19fc050837e918bdcf","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.4.tgz","fileCount":18,"integrity":"sha512-7YYXqX+cFFFvOIvenDtDDk5xwd+YpTEaX541gzITqP70gcCpjBWnWQrt5OKCQVLzoY66M+zshDUBwO591zVEXQ==","signatures":[{"sig":"MEMCHw7+KgYJTTL2M/YODHPvCANOw/Bgb8hME2AaSxmrwYACIHOUYKIzirW32VWS3nQvY9V62lHPCpDf2YQOh9XDwumN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24763},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.13.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.54.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.1","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.135.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.4_1781060290363_0.8589025860331982","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@1-/fix","version":"0.1.5","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.5","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"3de32c994d7433ea0d475225112070b828f69eee","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.5.tgz","fileCount":19,"integrity":"sha512-qYgiisbr3IIiQcm7Ql1Jk2hnsX7KnsaLvvlmUUZjqySnE76hfdOmQVVkiI49EjdSJ+Dmug7MZsHR+y4NW015qQ==","signatures":[{"sig":"MEYCIQCNV/rYU6Pgz+KNITb5nBtHOo0SFL9rtMwuU5/Sr1dwxgIhAPZGWKPhsrGRzr2yOrtbYYCWjU2p8yRkOaSy3tll2rN2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25998},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.16.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.56.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.1","@3-/read":"^0.1.4","@3-/write":"^0.0.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.137.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.5_1782638256569_0.9165267974448499","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@1-/fix","version":"0.1.6","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.6","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"f083ac5190f9a4463fde10e1911b1e8557ede168","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.6.tgz","fileCount":19,"integrity":"sha512-UNbias1UlGqg2tzpMKcksrfipgfatfqo9/xU6OTpA7fBBQHPKKTDwO3/o43b78DmM7oTt1VjYQ2N1GUF9WdmSQ==","signatures":[{"sig":"MEUCIGCldbLKltrFUvM1QG6ig5czDvacHY6lyj/H0WO1OBX4AiEAs0GuSb5K9miA08UKmuSZRKfeqcz8I+xZ4wJhUlAJXrw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26015},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.16.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.57.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.2","@3-/read":"^0.1.4","@3-/write":"^0.1.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.138.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.6_1782926605770_0.5062051755017472","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@1-/fix","version":"0.1.7","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.7","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"e38825b98f9ef2d90b9a944c78929bd234c02292","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.7.tgz","fileCount":19,"integrity":"sha512-aaP2/+5viFZPuAyn4sVFiuvL5oqW/mVmqhtvabfuxaB6T6aJxUiwrwXC6d4P9FR5Zf0ZnMIfEayFxmgsBiCJjw==","signatures":[{"sig":"MEUCIQCzsHPurb+3YUWZoFBiVW2RyePcCRa/MmCQ0uGrwtA3qgIgWLeB9PrUNXFGbBk3yOBe3TXlANc69r19tPWvR0l7fCw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26057},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.16.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.57.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.2","@3-/read":"^0.1.4","@3-/write":"^0.1.2","@3-/is_obj":"^0.1.1","oxc-parser":"^0.138.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.7_1782926613875_0.18916332971720462","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@1-/fix","version":"0.1.8","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.8","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"fee6ae43e5ecf92a7c3db8c78ec0f1cf81bb1e16","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.8.tgz","fileCount":19,"integrity":"sha512-yulRHGhf4z0DaLLvcW1rL0klXkNOxUVgqBbW7zhYMXCWUAQdl+xfhVNlcqvf7bgyindLooc6znAJvsjV332//Q==","signatures":[{"sig":"MEUCIQC8dOA71oI/Vwp/SeVF9wPP5cxqoQYu6CvOtycEqiWxtgIgP9WaNJ/T4uI3FeQ+h85/ezjODElJ35KUnpp193k1NTE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22336},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.16.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.59.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.2","@3-/read":"^0.1.4","@3-/write":"^0.1.2","@3-/is_obj":"^0.1.1","yuku-parser":"^0.6.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.8_1784231367066_0.029383539426591776","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@1-/fix","version":"0.1.9","keywords":["ast","formatter","git-hook","javascript","optimization"],"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","_id":"@1-/fix@0.1.9","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/webc-site/npm/tree/main/fix","bugs":{"url":"https://github.com/webc-site/npm/issues"},"bin":{"fix":"fix.js"},"dist":{"shasum":"a7e5751ca84091ee0807a5f58b8e27b06ace5ef3","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.9.tgz","fileCount":19,"integrity":"sha512-g2df9kcNx9cdqd1LD9RBObh2zwrWcdlSKU6TqkAsUWLWvL79/h0vvc0r4K3MFjtZ7jCQWEAVZNSaObtrcHrJqg==","signatures":[{"sig":"MEUCIQCwHesSYQCcNCjkoTx2f02xNj62Od/4voc31EUl7MsccAIgaL2ZYUSLeTe9+jUlz0ifJnpZHRUeGC8xS68qfTcAGHQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23249},"type":"module","exports":{".":"./_.js","./*":"./*"},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"repository":{"url":"git+https://github.com/webc-site/npm.git","type":"git"},"_npmVersion":"11.16.0","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","directories":{},"_nodeVersion":"26.2.0","dependencies":{"oxfmt":"^0.59.0","yargs":"^18.0.0","@3-/log":"^0.1.9","@1-/walk":"^0.1.2","@3-/read":"^0.1.4","@3-/write":"^0.1.2","@3-/is_obj":"^0.1.1","yuku-parser":"^0.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fix_0.1.9_1784532276762_0.7704717996383181","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@1-/fix","version":"0.1.10","description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","keywords":["ast","formatter","git-hook","javascript","optimization"],"homepage":"https://github.com/webc-site/npm/tree/main/fix","license":"MulanPSL-2.0","author":{"name":"x-at-01@googlegroups.com"},"repository":{"type":"git","url":"git+https://github.com/webc-site/npm.git"},"bin":{"fix":"fix.js"},"type":"module","exports":{".":"./_.js","./*":"./*"},"dependencies":{"@1-/walk":"^0.1.2","@3-/is_obj":"^0.1.1","@3-/log":"^0.1.9","@3-/read":"^0.1.4","@3-/write":"^0.1.2","oxfmt":"^0.61.0","yargs":"^18.1.0","yuku-parser":"^0.8.0"},"_id":"@1-/fix@0.1.10","bugs":{"url":"https://github.com/webc-site/npm/issues"},"_nodeVersion":"26.2.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-IGIIYiCRQuW0jNZDXjOwPGLrdJvJNR4AOyVc9UQ7YwH2TlZGm2Djzv80t5FujL4v7z2Ao2kISohjJ1yHHD/OTg==","shasum":"a7e9b6544839db6bc717ffac8e3c98799103b003","tarball":"https://registry.npmjs.org/@1-/fix/-/fix-0.1.10.tgz","fileCount":19,"unpackedSize":24530,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCPb/f5gUjQsoJ70/9IMfxea4uXWQ7BT9YRrDz1Rwc04gIhANtZEwoHVGt66QsJf0JPcQXX1NshRDCpiQ5GsDUcmz2h"}]},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"directories":{},"maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fix_0.1.10_1785219093788_0.5868718625975984"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-09T06:21:17.992Z","modified":"2026-07-28T06:11:34.112Z","0.1.0":"2026-06-09T06:21:18.343Z","0.1.1":"2026-06-09T06:24:02.042Z","0.1.2":"2026-06-09T06:28:48.376Z","0.1.3":"2026-06-09T06:45:38.728Z","0.1.4":"2026-06-10T02:58:10.534Z","0.1.5":"2026-06-28T09:17:36.707Z","0.1.6":"2026-07-01T17:23:25.967Z","0.1.7":"2026-07-01T17:23:34.012Z","0.1.8":"2026-07-16T19:49:27.176Z","0.1.9":"2026-07-20T07:24:36.898Z","0.1.10":"2026-07-28T06:11:33.937Z"},"bugs":{"url":"https://github.com/webc-site/npm/issues"},"author":{"name":"x-at-01@googlegroups.com"},"license":"MulanPSL-2.0","homepage":"https://github.com/webc-site/npm/tree/main/fix","keywords":["ast","formatter","git-hook","javascript","optimization"],"repository":{"type":"git","url":"git+https://github.com/webc-site/npm.git"},"description":"Git hook for automatic JavaScript code optimization and formatting / 自动优化与格式化 JavaScript 代码的 Git 钩子","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"readme":"[English](#en) | [中文](#zh)\n\n---\n\n<a id=\"en\"></a>\n# fix : JavaScript code transformation tool\n\n- [fix : JavaScript code transformation tool](#fix-javascript-code-transformation-tool)\n  - [Functionality](#functionality)\n  - [Usage demonstration](#usage-demonstration)\n  - [Design approach](#design-approach)\n  - [Technology stack](#technology-stack)\n  - [Code structure](#code-structure)\n  - [Historical context](#historical-context)\n  - [About](#about)\n\n## Functionality\n\nSafely and automatically refactors JavaScript source code by converting common legacy patterns into modern equivalents. All transformations operate on the Abstract Syntax Tree (AST) to guarantee semantic preservation, improving code readability and maintainability.\n\n## Usage demonstration\n\nInstall as a development dependency:\n\n```bash\nnpm install --save-dev @1-/fix\n```\n\nRun on current directory (Bun or Node.js):\n\n```bash\nnpx @1-/fix\n```\n\nRun on specific files:\n\n```bash\nnpx @1-/fix src/index.js src/utils.js\n```\n\n## Design approach\n\nThe tool uses a single-pass, multi-rule AST pipeline architecture. Each rule receives the current code and AST, and returns modified code. If a change occurs, the AST is reparsed and subsequent rules are applied — continuing until no further changes occur or all rules are exhausted.\n\n![](https://cdn.jsdmirror.com/gh/webc-fs/-@ye/6Nv8O0WUtKgGPkuFrgCg.svg)\n\n## Technology stack\n\n- Runtime: Bun or Node.js\n- AST parser: `yuku-parser`\n- Code formatter: `oxfmt`\n- Core utilities: `@3-/log`, `@3-/read`, `@3-/write`, `@1-/walk`\n\n## Code structure\n\n```\nsrc/\n├── fix.js          # CLI entry point; uses yargs for args and @1-/walk for .js file discovery\n├── run.js          # Main loop for batch file processing; uses @3-/read/@3-/write for I/O\n├── rule.js         # Rule orchestrator; applies all transforms in sequence and formats output with oxfmt\n├── lib/            # Generic AST utility functions\n│   ├── TYPE.js     # AST node type constants (ARROW_FUNCTION_EXPRESSION, CALL_EXPRESSION, etc.)\n│   ├── walk.js     # Depth-first AST walker supporting nested objects and arrays\n│   ├── applyEdits.js # Position-based text replacement with descending sort order\n│   ├── importAdd.js # Smart import statement injection detecting missing imports\n│   └── createReplace.js # Rule template: AST pattern matching + text replacement + import management\n└── replace/        # Concrete transformation implementations\n    ├── read.js        # fs.readFileSync → read (with @3-/read import)\n    ├── readAsync.js   # fs.readFile → readAsync (with @1-/read import)\n    ├── sleep.js       # new Promise((r) => setTimeout(r, ...)) → sleep(...) (complex AST pattern matching)\n    ├── constMerge.js  # Merge consecutive const declarations (intelligent whitespace handling)\n    ├── while.js       # while(true) → for(;;) (literal value matching)\n    ├── utf8e.js       # new TextEncoder().encode(...) → utf8e(...) (member expression matching)\n    └── env.js         # process.env → env (member expression matching with import injection)\n```\n\n## Historical context\n\nThe concept of codemod traces back to Program Transformation Systems of the 1970s (e.g., ELI, DMS). Facebook's jscodeshift, released in 2015, brought AST-driven JavaScript refactoring into mainstream developer workflows. This tool continues that tradition, focusing on lightweight, precise, zero-configuration optimizations for everyday use, employing a functional architecture where each rule is a pure function ensuring predictability and testability.\n\n## About\n\nThis library is developed by [WebC.site](https://webc.site).\n\n[WebC.site](https://webc.site): A new paradigm of web development for AI\n\n\n---\n\n<a id=\"zh\"></a>\n# fix : JavaScript 代码转换工具\n\n- [fix : JavaScript 代码转换工具](#fix-javascript-代码转换工具)\n  - [功能介绍](#功能介绍)\n  - [使用演示](#使用演示)\n  - [设计思路](#设计思路)\n  - [技术栈](#技术栈)\n  - [代码结构](#代码结构)\n  - [历史故事](#历史故事)\n  - [关于](#关于)\n\n## 功能介绍\n\n安全地自动重构 JavaScript 源码，将常见遗留模式转换为现代等效形式。所有转换均基于抽象语法树（AST）分析，确保语义不变，提升代码可读性与可维护性。\n\n## 使用演示\n\n作为开发依赖安装：\n\n```bash\nnpm install --save-dev @1-/fix\n```\n\n在当前目录运行（Bun 或 Node.js）：\n\n```bash\nnpx @1-/fix\n```\n\n指定文件运行：\n\n```bash\nnpx @1-/fix src/index.js src/utils.js\n```\n\n## 设计思路\n\n工具采用单次遍历、多规则串联的 AST 管道架构。每个规则接收当前代码与 AST，返回修改后代码；若发生变更，则重新解析 AST 并继续后续规则，直至无变化或规则耗尽。\n\n![](https://cdn.jsdmirror.com/gh/webc-fs/-@SW/MHghJDiHu67qkfph12_A.svg)\n\n## 技术栈\n\n- 运行时：Bun 或 Node.js\n- AST 解析器：`yuku-parser`\n- 代码格式化：`oxfmt`\n- 核心工具库：`@3-/log`、`@3-/read`、`@3-/write`、`@1-/walk`\n\n## 代码结构\n\n```\nsrc/\n├── fix.js          # CLI 入口，使用 yargs 解析参数，用 @1-/walk 发现 .js 文件\n├── run.js          # 批量文件处理主循环，使用 @3-/read/@3-/write 读写文件\n├── rule.js         # 规则调度器，按序应用全部转换规则，并用 oxfmt 格式化最终输出\n├── lib/            # 通用 AST 工具函数\n│   ├── TYPE.js     # AST 节点类型常量（ARROW_FUNCTION_EXPRESSION、CALL_EXPRESSION等）\n│   ├── walk.js     # 深度优先 AST 遍历器，支持嵌套对象和数组\n│   ├── applyEdits.js # 基于位置的文本替换，按起始位置降序排序\n│   ├── importAdd.js # 智能导入语句注入，检测并添加缺失导入\n│   └── createReplace.js # 规则模板：AST模式匹配 + 文本替换 + 导入管理\n└── replace/        # 具体转换规则实现\n    ├── read.js        # fs.readFileSync → read（带 @3-/read 导入）\n    ├── readAsync.js   # fs.readFile → readAsync（带 @1-/read 导入）\n    ├── sleep.js       # new Promise((r) => setTimeout(r, ...)) → sleep(...)（复杂AST模式匹配）\n    ├── constMerge.js  # 合并连续 const 声明（智能空白处理）\n    ├── while.js       # while(true) → for(;;)（字面量匹配）\n    ├── utf8e.js       # new TextEncoder().encode(...) → utf8e(...)（成员表达式匹配）\n    └── env.js         # process.env → env（成员表达式匹配，带导入注入）\n```\n\n## 历史故事\n\n现代 codemod 概念可追溯至 1970 年代的 Program Transformation Systems（如 ELI、DMS）。2015 年 Facebook 推出 jscodeshift，首次将 AST 驱动的 JavaScript 重构带入主流开发流程。本工具延续该范式，聚焦轻量、精准、零配置的日常优化场景，采用函数式架构设计，每个规则都是纯函数，确保可预测性和可测试性。\n\n## 关于\n\n本库由 [WebC.site](https://webc.site) 开发。\n\n[WebC.site](https://webc.site) : 面向人工智能的网站开发新范式\n\n","readmeFilename":"README.md"}