{"_id":"@putout/plugin-apply-push","_rev":"5-449cc728fd3d3f355652b1cadb3b057b","name":"@putout/plugin-apply-push","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@putout/plugin-apply-push","version":"1.0.0","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-push@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a15087b5ec57b4c8fc1943645f6394bd2370c0d7","tarball":"https://registry.npmjs.org/@putout/plugin-apply-push/-/plugin-apply-push-1.0.0.tgz","fileCount":4,"integrity":"sha512-2Pm3CiNeOBSLGm/W1DfZZlG59qPp1M6CS1rEKwezZf0nlHuKUjhvXPg/e1u8zBSXAMlD171MzZEK0IKaMxRF3w==","signatures":[{"sig":"MEUCIHWfmFqsztX4QjCdtq/kzt6upEAXMGDQY6xbBfoCu0K1AiEAoJo7m54LE+QLMm7PsLhODLoGqXz/MfFAJPo9LSkXkbE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4492},"main":"lib/apply-push.js","type":"module","engines":{"node":">=22"},"gitHead":"4bd822376e7eba1129fea611ca08916d49b33468","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability to apply 'push()' bind","directories":{},"_nodeVersion":"26.5.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-push_1.0.0_1784473893508_0.054927314764699364","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@putout/plugin-apply-push","version":"1.0.1","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-push@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"36a0908240ae0ff8e04ac353f24f8114d9efe459","tarball":"https://registry.npmjs.org/@putout/plugin-apply-push/-/plugin-apply-push-1.0.1.tgz","fileCount":4,"integrity":"sha512-5LZ6oZ4ghZCLwPFXNj3JfvKY8oFLKIrXR9m+0k6XK3CQD3WnMs/wPogFZs3stUz9prKnbMoNGbBSSoKFfjBmGg==","signatures":[{"sig":"MEUCIEfOb+4W/4OpuBfTKkvwa976osp5WVyISERiVTwN5QnHAiEA0Uj5goCIddi+F9kOfB/vKOGJopM5Thlu2k2eLmK4yZM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4496},"main":"lib/apply-push.js","type":"module","engines":{"node":">=22"},"gitHead":"1fe174fc6a84a9c681cdc47e5e5dbbd409e28c74","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability to apply 'push()' bind","directories":{},"_nodeVersion":"26.5.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-push_1.0.1_1784722953737_0.9840811929551769","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@putout/plugin-apply-push","version":"1.1.0","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-push@1.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"b6595664a6f2526af61c060ced08c757db9f9671","tarball":"https://registry.npmjs.org/@putout/plugin-apply-push/-/plugin-apply-push-1.1.0.tgz","fileCount":4,"integrity":"sha512-elkT59DoGFm4HecUY7QbFmtGtYuXwKgpiJUZQ1VZF7DNQmpPgTB2KU2aixwqLx6eUf58Lfo8PPbT8FNna7/n0Q==","signatures":[{"sig":"MEQCIF1ZgLBPryy+ycIZOcnvn80sdQlhFApxHYtzf4oL32NpAiAPK7nUDBXndeJNvZq+N54RNln2P53QEfFYFYBqjQ8CNQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDAWcXD5veOlTfn54Wz8bZGoUIWb7WIPAVSeFOh0F4quwIhAJKWB5kiVLhIinah9lM436d4HCy0xB4v/NKBlcP9+xOn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4663},"main":"lib/apply-push.js","type":"module","engines":{"node":">=22"},"gitHead":"19e730f0e4892e4e5a2ddcd92cedbcfdd72b6f63","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to apply 'push()' bind","directories":{},"_nodeVersion":"26.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-push_1.1.0_1792237682062_0.07024734090156914","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@putout/plugin-apply-push","version":"1.2.0","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-push@1.2.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"11435fbbffb691e6f6ff14b1ce0eed0ad0c29265","tarball":"https://registry.npmjs.org/@putout/plugin-apply-push/-/plugin-apply-push-1.2.0.tgz","fileCount":4,"integrity":"sha512-Y1kLgCrgh4RyUpyxLzKTWLsycQ6se2VTJ2ADUbIoaRmjTfNR6UoM2pX3x5xwACW1cguX8uh0IXrQXZCjMK7DLQ==","signatures":[{"sig":"MEUCIBPVNMhQqBo3zLC0AmExN7H3QXLSCnEHWUSRpmU4JcyzAiEAmugaPV1G5ltiFl+djnsRVm9nBRU/ko19BqoWYX8zMWs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDYF2qPc8iv/mv+4J7Qq3dRgqQCa8CgOj0T9D7NPf2kggIhAJQPEmMjkbPQC6u41KHcG0vQHQ/1C6kgDRasBbGntlm5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4755},"main":"lib/apply-push.js","type":"module","engines":{"node":">=22"},"gitHead":"e4873d8e96050df26f1cdf2607efd13d78a50360","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to apply 'push()' bind","directories":{},"_nodeVersion":"26.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-push_1.2.0_1792242497094_0.043169568620755605","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"_id":"@putout/plugin-apply-push@1.2.1","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"e34359ffa2e7bfad458419f0610b1560a4b8700a","tarball":"https://registry.npmjs.org/@putout/plugin-apply-push/-/plugin-apply-push-1.2.1.tgz","fileCount":4,"integrity":"sha512-UkghaGZWCu3YuTWYThLIvgpOyFldr7c8LkpIE291OrIW3RcL4hcctg/ky54sLYhwPC/LJ0GdKCrla4iedc7ikw==","signatures":[{"sig":"MEQCIFMoYpXrdMQsq4qXnR7cZRfM6BSiBUsc7pu0t+4cVFC+AiAlppRoyksu3sH40Uf1RgWYGRsKSyUwvYh2d2pf9Sbw+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEG1kxmwJPHw7cdMVe8IHXYO8FRUH+HR2iZDLp25dZLUAiBByHztNqDrTLCxBgoZhDn1U2eEm0uwZ6EYTtEJ3FXtmA=="}],"unpackedSize":4777},"main":"lib/apply-push.js","name":"@putout/plugin-apply-push","type":"module","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"engines":{"node":">=22"},"gitHead":"2591db4baacc3848033ee31566387c41ae09c735","license":"MIT","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"version":"1.2.1","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to apply 'push()' bind","directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_nodeVersion":"26.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-apply-push_1.2.1_1792242655471_0.7260031697750637"}}},"time":{"created":"2026-07-19T15:11:33.332Z","modified":"2026-10-17T13:10:55.724Z","1.0.0":"2026-07-19T15:11:33.642Z","1.0.1":"2026-07-22T12:22:33.894Z","1.1.0":"2026-10-17T11:48:02.157Z","1.2.0":"2026-10-17T13:08:17.204Z","1.2.1":"2026-10-17T13:10:55.559Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-push#readme","keywords":["putout","putout-plugin","plugin","push","putout-plugin-remove","putout-plugin-apply"],"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"description":"🐊Putout plugin adds ability to apply 'push()' bind","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-apply-push [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-push.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-push \"npm\"\n\n> The `push()` method of `Array` instances adds the specified elements to the end of an array and returns the new length of the array.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push)\n\n> The `bind()` method of `Function` instances creates a new function that, when called, calls this function with its this keyword set to the provided value, and a given sequence of arguments preceding any provided when the new function is called.\n\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply `push()` bind.\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/edebc3873f4b2ea6d99cfb957814bc63/603eed77455010519c1127490267888e3f6576a8).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-push\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-push\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst nextActions = [];\nconst dispatch = createMiddleware(store)((a) => nextActions.push(a));\n```\n\n## ✅ Example of correct code\n\n```js\nconst nextActions = [];\nconst push = nextActions.push.bind(nextActions);\nconst dispatch = createMiddleware(store)(push);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}