{"_id":"@putout/plugin-convert-label-to-object","_rev":"4159686","name":"@putout/plugin-convert-label-to-object","description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:36:01.000Z","created":"2024-01-08T21:33:19.672Z","2.0.1":"2024-08-24T15:04:02.546Z","2.0.0":"2024-08-24T05:55:30.515Z","1.0.2":"2024-01-08T21:47:33.305Z","1.0.1":"2024-01-08T21:43:02.811Z","1.0.0":"2024-01-08T21:33:19.672Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"2.0.1":{"name":"@putout/plugin-convert-label-to-object","version":"2.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","homepage":"https://github.com/coderaiser/putout/tree/v36.2.0/packages/plugin-convert-label-to-object#readme","main":"lib/convert-label-to-object.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-label-to-object@2.0.1","gitHead":"4001dcfd1299bda7235a937f86f0e27c4a9b7c4c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"cdc58e6783ba731ef6087841c60ff6a0acd3ca12","size":2282,"noattachment":false,"key":"/@putout/plugin-convert-label-to-object/-/@putout/plugin-convert-label-to-object-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-label-to-object/download/@putout/plugin-convert-label-to-object-2.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-label-to-object_2.0.1_1724511842336_0.8114633590281015"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T15:04:02.546Z","publish_time":1724511842546,"_source_registry_name":"default","_cnpm_publish_time":1724511842546},"2.0.0":{"name":"@putout/plugin-convert-label-to-object","version":"2.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-label-to-object#readme","main":"lib/convert-label-to-object.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"02fce6765cfc0c63c9a5b955ce0497877f421b57","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-label-to-object@2.0.0","_nodeVersion":"22.2.0","_npmVersion":"8.9.0","dist":{"shasum":"a8dd635d3931ba332037509490da167e3a3b9062","size":2253,"noattachment":false,"key":"/@putout/plugin-convert-label-to-object/-/@putout/plugin-convert-label-to-object-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-label-to-object/download/@putout/plugin-convert-label-to-object-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-label-to-object_2.0.0_1724478930354_0.05171133479433343"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T05:55:30.515Z","publish_time":1724478930515,"_source_registry_name":"default","_cnpm_publish_time":1724478930515},"1.0.2":{"name":"@putout/plugin-convert-label-to-object","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-label-to-object#readme","main":"lib/convert-label-to-object.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^8.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"213bcdf0cabd402efd3a4dea84d3fcee4b586bad","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-label-to-object@1.0.2","_nodeVersion":"20.10.0","_npmVersion":"9.6.6","dist":{"shasum":"25a6f848221ec0d790c3824832aa22ff28044f67","size":2249,"noattachment":false,"key":"/@putout/plugin-convert-label-to-object/-/@putout/plugin-convert-label-to-object-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-label-to-object/download/@putout/plugin-convert-label-to-object-1.0.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-label-to-object_1.0.2_1704750453158_0.15823791941109988"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-08T21:47:33.305Z","publish_time":1704750453305,"_source_registry_name":"default","_cnpm_publish_time":1704750453305},"1.0.1":{"name":"@putout/plugin-convert-label-to-object","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-label-to-object#readme","main":"lib/convert-label-to-object.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^8.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"cd31a6bd1beddf3e5c38ac45e61661b217de9478","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-label-to-object@1.0.1","_nodeVersion":"20.10.0","_npmVersion":"9.6.6","dist":{"shasum":"70fcee8a16e98864eb1560bddca22b528236b6a2","size":2238,"noattachment":false,"key":"/@putout/plugin-convert-label-to-object/-/@putout/plugin-convert-label-to-object-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-label-to-object/download/@putout/plugin-convert-label-to-object-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-label-to-object_1.0.1_1704750182654_0.8572809664738796"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-08T21:43:02.811Z","publish_time":1704750182811,"_source_registry_name":"default","_cnpm_publish_time":1704750182811},"1.0.0":{"name":"@putout/plugin-convert-label-to-object","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and convert 'label' to 'object'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-label-to-object#readme","main":"lib/convert-label-to-object.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^8.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"48817e92c6c95cc7e0ed03785bb8fa9e1a703d54","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-label-to-object@1.0.0","_nodeVersion":"20.10.0","_npmVersion":"9.6.6","dist":{"shasum":"eca95fd1147f79b06415c01d291b70ac6617aae8","size":2195,"noattachment":false,"key":"/@putout/plugin-convert-label-to-object/-/@putout/plugin-convert-label-to-object-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-label-to-object/download/@putout/plugin-convert-label-to-object-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-label-to-object_1.0.0_1704749599487_0.05459106941259306"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-08T21:33:19.672Z","publish_time":1704749599672,"_source_registry_name":"default","_cnpm_publish_time":1704749599672}},"readme":"# @putout/plugin-convert-label-to-object [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-label-to-object.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-label-to-object \"npm\"\n\n> A **labeled statement** is any `statement` that is prefixed with an `identifier`. You can jump to this label using a `break` or `continue` statement nested within the labeled statement.\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label)\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and convert `label` to `object`. Merged to [`@putout/plugin-labels`](https://www.npmjs.com/package/@putout/plugin-labels).\n\nCheckout in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/86e2915cc2cffb6c26dd3bc2f2379a71/605562cf1fdf77a7918792955601e6767a805050).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-label-to-object\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-label-to-object\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = () => {\n    hello: 'world';\n    x: 'm';\n};\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = () => ({\n    hello: 'world',\n    x: 'm',\n});\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v36.2.0/packages/plugin-convert-label-to-object#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}