{"_id":"@putout/plugin-new","_rev":"4159148","name":"@putout/plugin-new","description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","dist-tags":{"latest":"5.1.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:34:14.000Z","created":"2022-05-08T08:24:06.712Z","5.1.0":"2026-01-12T13:47:56.951Z","5.0.0":"2025-12-30T22:02:34.475Z","4.0.1":"2025-12-30T22:02:04.500Z","4.0.0":"2025-03-31T13:14:45.595Z","3.0.1":"2023-11-12T11:59:54.835Z","3.0.0":"2023-11-12T11:57:22.424Z","2.1.0":"2023-06-01T20:24:43.922Z","2.0.0":"2023-05-18T08:36:39.152Z","1.1.0":"2022-05-22T14:11:55.360Z","1.0.3":"2022-05-08T09:20:33.916Z","1.0.2":"2022-05-08T08:27:59.409Z","1.0.1":"2022-05-08T08:26:00.406Z","1.0.0":"2022-05-08T08:24:06.712Z"},"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":{"5.1.0":{"name":"@putout/plugin-new","version":"5.1.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.2.0","madrun":"^12.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-new@5.1.0","gitHead":"d1a3f2dd26924c6cd6bf1b6a4b182d49ca2d0721","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"779ee36c95cef7f3f3b6ec81fa8e631c07c71884","size":2921,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-5.1.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-npm-production","tmp":"tmp/plugin-new_5.1.0_1768225676800_0.3266388332918828"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-12T13:47:56.951Z","publish_time":1768225676951,"_source_registry_name":"default","_cnpm_publish_time":1768225676951},"5.0.0":{"name":"@putout/plugin-new","version":"5.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-new@5.0.0","gitHead":"a5d1d3e2f117760392ca0b17bc797643246b48ae","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"43c78345f15df2c2c78ad79b03a569c2b63bb130","size":2951,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-5.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-npm-production","tmp":"tmp/plugin-new_5.0.0_1767132154334_0.99787875257599"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T22:02:34.475Z","publish_time":1767132154475,"_source_registry_name":"default","_cnpm_publish_time":1767132154475},"4.0.1":{"name":"@putout/plugin-new","version":"4.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=39"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-new@4.0.1","gitHead":"8a1f7db91ce7bc00aed83a65289782018e2d7746","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"10a42a0461e79daee0ed149180aa784d9eb90929","size":2955,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-4.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/plugin-new_4.0.1_1767132124325_0.856214422235575"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T22:02:04.500Z","publish_time":1767132124500,"_source_registry_name":"default","_cnpm_publish_time":1767132124500},"4.0.0":{"name":"@putout/plugin-new","version":"4.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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":{"eslint-plugin-putout":"^26.0.0","version-io":"^5.0.0"},"keywords":["putout","putout-plugin","plugin","new","useless","missing"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=39"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-new@4.0.0","gitHead":"daa16ab7520f7e486e0372758037ec88e10d3900","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"shasum":"4cc037e76776c08bd9b4d6ea0755e685ec14bdc4","size":2963,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-4.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-npm-production","tmp":"tmp/plugin-new_4.0.0_1743426885412_0.39736360940941595"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-31T13:14:45.595Z","publish_time":1743426885595,"_source_registry_name":"default","_cnpm_publish_time":1743426885595},"3.0.1":{"name":"@putout/plugin-new","version":"3.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=33"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"45f1f79a99ad9c38f7e6d4cc4dd55dd7005c1c27","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@3.0.1","_nodeVersion":"20.9.0","_npmVersion":"9.6.6","dist":{"shasum":"170bd68796e1b3c88445c87db65bb3714e026149","size":2931,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-3.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-new_3.0.1_1699790394662_0.024367159244195413"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-12T11:59:54.835Z","publish_time":1699790394835,"_source_registry_name":"default","_cnpm_publish_time":1699790394835},"3.0.0":{"name":"@putout/plugin-new","version":"3.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=32"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"c569c5123e73bed10dc5557559e3fe1ab92c5476","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@3.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.6.6","dist":{"shasum":"d1b579310fdefa1f5a0cf9b5099c4a938dd9da21","size":2930,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-3.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-new_3.0.0_1699790242214_0.21708462201620748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-12T11:57:22.424Z","publish_time":1699790242424,"_source_registry_name":"default","_cnpm_publish_time":1699790242424},"2.1.0":{"name":"@putout/plugin-new","version":"2.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"9b6199884930b02238018ed0c2124b1b2cece4c7","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@2.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"shasum":"eb2b4167ec1c3a9efbae86466ef8d7b444dbbd1f","size":2945,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-2.1.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-new_2.1.0_1685651083680_0.751193072278868"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-01T20:24:43.922Z","publish_time":1685651083922,"_source_registry_name":"default","_cnpm_publish_time":1685651083922},"2.0.0":{"name":"@putout/plugin-new","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 remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"583a2c1440700c5d09c2a5fc3e30d992207c044f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@2.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"shasum":"42dccb5b099da9f37b37050dd0be0baa0682a0f0","size":2937,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-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-new_2.0.0_1684398998978_0.7463485859235146"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-18T08:36:39.152Z","publish_time":1684398999152,"_source_registry_name":"default","_cnpm_publish_time":1684398999152},"1.1.0":{"name":"@putout/plugin-new","version":"1.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"171d286c3357c3cdf2a1ee354bd78c378c1d427f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@1.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"shasum":"83ccd53981c0b7c0927d4f89207020371dceb77a","size":2840,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-1.1.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-new_1.1.0_1653228715181_0.8969727194968797"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-22T14:12:25.797Z","publish_time":1653228715360,"_cnpm_publish_time":1653228715360},"1.0.3":{"name":"@putout/plugin-new","version":"1.0.3","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"b1a15ffe14b29a17d65c3251af1bb439901f70ad","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@1.0.3","_nodeVersion":"14.17.5","_npmVersion":"8.3.0","dist":{"shasum":"cc55709d84a7d7ccf5397acdbd7d11afb4d9998f","size":2802,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-1.0.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","tmp":"tmp/plugin-new_1.0.3_1652001633673_0.9870977697670076"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T09:20:38.757Z","publish_time":1652001633916,"_cnpm_publish_time":1652001633916},"1.0.2":{"name":"@putout/plugin-new","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 remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6d9d10d157d31bf13d16de1b4dbef1298f690139","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@1.0.2","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"0ff44322eec1ae9b3930975226e0c79d10adbd33","size":2807,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-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-new_1.0.2_1651998479233_0.01795432364317784"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T08:28:06.364Z","publish_time":1651998479409,"_cnpm_publish_time":1651998479409},"1.0.1":{"name":"@putout/plugin-new","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 remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6d9d10d157d31bf13d16de1b4dbef1298f690139","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@1.0.1","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"ff027c1f4c9ac29fb7214adac9bfff47ef924828","size":2800,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-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-new_1.0.1_1651998360279_0.4904979165879375"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T08:26:03.823Z","publish_time":1651998360406,"_cnpm_publish_time":1651998360406},"1.0.0":{"name":"@putout/plugin-new","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 remove useless and add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","main":"lib/-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","useless","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6d9d10d157d31bf13d16de1b4dbef1298f690139","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-new@1.0.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"a2991eedd83e64c19c3d042bd6832d811eb891aa","size":3639,"noattachment":false,"key":"/@putout/plugin-new/-/@putout/plugin-new-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-new/download/@putout/plugin-new-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-new_1.0.0_1651998246511_0.9525956469014507"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T08:24:12.137Z","publish_time":1651998246712,"_cnpm_publish_time":1651998246712}},"readme":"# @putout/plugin-new [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-new.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-new \"npm\"\n\n> The `new` operator lets developers create an instance of a user-defined object type or of one of the built-in object types that has a constructor function.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new)\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to add missing and remove useless operator `new`.\n\n## Install\n\n```\nnpm i @putout/plugin-new\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"new/remove-useless\": \"on\",\n        \"new/add-missing\": \"on\"\n    }\n}\n```\n\n## remove-useless\n\nOperator `new` has no sense for `Boolean`, `String`, `Number`, `Object`, `RegExp`, `Math`, `Reflect`, `Error`, `TypeError`:\n\n> Thus the function call `Error(…)` is equivalent to the object creation expression `new Error(…)` with the same arguments.\n>\n> (c) https://262.ecma-international.org/12.0/#sec-error-constructor\n\nAnd [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol), [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) cannot be used with `new`, as it is primitive.\n\n### ❌ Example of incorrect code\n\n```js\nnew Error('Something went wrong');\nnew new Boolean()();\n```\n\n### ✅ Example of correct code\n\n```js\nError('Something went wrong');\nBoolean();\n```\n\n## add-missing\n\n> The `Set` constructor lets you create Set objects that store unique values of any type, whether primitive values or object references.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set)\n\nMissing operator `new` should be added since built-in objects:\n\n- `Set`;\n- `WeakSet`;\n- `Map`;\n- `WeakMap`;\n- `Int8Array`;\n- `Uint8Array`;\n- `Uint8ClampedArray`;\n- `Int16Array`;\n- `Uint16Array`;\n- `Int32Array`;\n- `Uint32Array`;\n- `Float32Array`;\n- `Float64Array`;\n- `BigInt64Array`;\n- `BigUint64Array`;\n\nProduces [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) when called without `new`:\n\n```\nUncaught TypeError: Constructor Set requires 'new'\n```\n\n### ❌ Example of incorrect code\n\n```js\nconst map = Map();\n```\n\n### ✅ Example of correct code\n\n```js\nconst map = new Map();\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n???? **Putout** | [`remove-useless-new`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme)| ✅\n⏣ **ESLint** | [`no-new-wrappers`](https://eslint.org/docs/rules/no-new-wrappers) | ❌\n⠀| [`no-new-object`](https://eslint.org/docs/rules/no-new-object) | ❌\n⠀| [`no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) | ❌\n⠀| [`no-new-symbol`](https://eslint.org/docs/rules/no-new-symbol) | ❌\n⠀| [`no-new-native-constructor`](https://eslint.org/docs/rules/https://eslint.org/docs/latest/rules/no-new-native-nonconstructor) | ❌\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-new#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}