{"_id":"@putout/operator-rename-properties","_rev":"4160253","name":"@putout/operator-rename-properties","description":"🐊Putout operator adds ability to create rules that renames properties","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:37:58.000Z","created":"2026-02-19T14:22:46.069Z","1.0.1":"2026-02-19T14:31:52.767Z","1.0.0":"2026-02-19T14:22:46.069Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"1.0.1":{"name":"@putout/operator-rename-properties","version":"1.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to create rules that renames properties","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-rename-properties#readme","main":"lib/rename-properties.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://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"},"keywords":["putout","putout-operator","operator","rename-properties"],"devDependencies":{"@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","montag":"^1.2.1","nodemon":"^3.0.1","putout":"*","supertape":"^12.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"dependencies":{"@putout/operate":"^15.0.0","@putout/operator-json":"^3.2.0"},"_id":"@putout/operator-rename-properties@1.0.1","gitHead":"54b5ac8c471fe0f349d32053c0bcf5bb4a797e30","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.22.0","_npmVersion":"11.4.2","dist":{"shasum":"b6d9dd6de5d1eb71b4e4a1d9ecba12f4b87ade28","size":2016,"noattachment":false,"key":"/@putout/operator-rename-properties/-/@putout/operator-rename-properties-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/operator-rename-properties/download/@putout/operator-rename-properties-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-npm-production","tmp":"tmp/operator-rename-properties_1.0.1_1771511512630_0.5694500298697298"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-19T14:31:52.767Z","publish_time":1771511512767,"_source_registry_name":"default","_cnpm_publish_time":1771511512767},"1.0.0":{"name":"@putout/operator-rename-properties","version":"1.0.0","keywords":["putout","putout-operator","operator","rename-properties"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-rename-properties@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-rename-properties#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"0a3ed3cc258906869bc902fa038e25411d0d0beb","size":2014,"noattachment":false,"key":"/@putout/operator-rename-properties/-/@putout/operator-rename-properties-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/operator-rename-properties/download/@putout/operator-rename-properties-1.0.0.tgz"},"main":"lib/rename-properties.js","type":"module","engines":{"node":">=22"},"gitHead":"90a87045d81c57926c159b59497bc8f8514fdab1","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"},"_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 operator adds ability to create rules that renames properties","directories":{},"_nodeVersion":"22.22.0","dependencies":{"@putout/operate":"^15.0.0","@putout/operator-json":"^3.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0","madrun":"^13.0.0","montag":"^1.2.1","putout":"*","nodemon":"^3.0.1","supertape":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0"},"_npmOperationalInternal":{"tmp":"tmp/operator-rename-properties_1.0.0_1771510965934_0.28407650746825786","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-02-19T14:22:46.069Z","publish_time":1771510966069,"_source_registry_name":"default","_cnpm_publish_time":1771510966069}},"readme":"# @putout/operator-rename-properties [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-rename-properties.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-rename-properties \"npm\"\n\n????[**Putout**](https://github.com/coderaiser/putout) operator add ability to create rules that renames properties.\n\n## Install\n\n```\nnpm i putout @putout/operator-rename-properties\n```\n\n## API\n\n### rename\n\nWhen you want to rename properties:\n\n```diff\n{\n    \"rules\": {\n-       \"merge-duplicate-imports\": \"off\"\n+       \"esm/merge-duplicate-imports\": \"off\"\n    },\n}\n```\n\nUse:\n\n```js\nimport {operator} from 'putout';\n\nconst {renameProperties} = operator;\n\nexport const {\n    report,\n    fix,\n    traverse,\n} = renameProperties([\n    ['merge-duplicate-imports', 'esm/merge-duplicate-imports'],\n]);\n```\n\n### remove\n\nWhen you whant to remove properties:\n\n```diff\n{\n    \"rules\": {\n-       \"merge-duplicate-imports\": \"off\"\n    },\n}\n```\n\nUse:\n\n```js\nimport {operator} from 'putout';\n\nconst {renameProperties} = operator;\n\nexport const {\n    report,\n    fix,\n    traverse,\n} = renameProperties([\n    ['merge-duplicate-imports', ''],\n]);\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-rename-properties#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}