{"_id":"babel-helper-simplify-module","_rev":"9-db50cb5b68595a95eac7a8bfe3c813a2","name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","dist-tags":{"latest":"2.2.1"},"versions":{"1.0.0":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"1.0.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"dependencies":{"babel-explode-module":"^1.1.0"},"devDependencies":{"babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"806eb62a91a89814677529961c08e13178f19fbd","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@1.0.0","_shasum":"349aa5606f58301fc870ce87433ca13eff0b01bd","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"349aa5606f58301fc870ce87433ca13eff0b01bd","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-1.0.0.tgz","integrity":"sha512-CdyhebfcK8Rvlih9Pvtq2cFprJ1dHCkYff5Z1j2ndkk0GJGJgi/PJn1epdcS4boWqc/eeJJEbbageg/WVChPGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFeWQBnD79lo+oaJJYLDLP5LElH5M6vx1ZbuycNDb78AiACGkh4DN0DRLAgWqY4+83ZvixhOWnFB9tx0IuePf5VVA=="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-1.0.0.tgz_1495733429174_0.5852855455596"},"directories":{}},"2.0.0":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.0.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"dependencies":{"babel-explode-module":"^1.1.0"},"devDependencies":{"babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"a85ea2a601fb0e545f31d4f6b9f26403e45590b0","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.0.0","_shasum":"9acf7d18d7d64df66b88ec8bb6041e85dccb966d","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"9acf7d18d7d64df66b88ec8bb6041e85dccb966d","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.0.0.tgz","integrity":"sha512-ZVJqj/usLbZOgOH0EKld8DeiUyq1XGBmd1ZHknPTTmbqXP7cnfpORQrjtSrlrM3nx1ueLnELLVchz5Y8ytCbNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKbRTwZhbu9Z+/gyCJEKrRkOQGjsVr+TdfP0n1MKRj1AIga2AiG36OFVrX+3dKNxNODLjodG4I8bBO98P4rhQBcaA="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-2.0.0.tgz_1495734202691_0.9457686576060951"},"directories":{}},"2.1.0":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.1.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"dependencies":{"babel-explode-module":"^1.2.0"},"devDependencies":{"babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"820dc44b5647db98b4a19aacaffebe6a47cb861e","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.1.0","_shasum":"1e7f1b7bd385fb58042e9b39c3f64bf270537db4","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"1e7f1b7bd385fb58042e9b39c3f64bf270537db4","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.1.0.tgz","integrity":"sha512-ybp+5RxiNTRCj5z21Pwh1K+AogcMOfF0Ukp+eWmMjf6nhma8Spy93HvqOBejhCKcGeODFRQX7k9SIrZyb9oX4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpAgJDHnarT/+punxwN6MWKNUUxhi+D1OWN57SoxQ0zAIgehAKrDz0GmwUhVeCP2vMwDfyYtIfeHFnPXKprFfpdp0="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-2.1.0.tgz_1495738723573_0.7052198764868081"},"directories":{}},"2.1.1":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.1.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"files":[],"dependencies":{"babel-explode-module":"^1.2.0"},"devDependencies":{"babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"5392f40132e212a222502b33f0ed790508b7f4d2","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.1.1","_shasum":"bf13c70d077caf64ff99c9fe26f5d4becc69a5cf","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"bf13c70d077caf64ff99c9fe26f5d4becc69a5cf","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.1.1.tgz","integrity":"sha512-7UmCsVwIwim2AirfIR0+6Ig/JqOJE6Wj1wqLv1oikapPqeGOOD4tkmVF8LoAiOyI3izQNeJVs8QoFGwuY5W87A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLuKS5NubZRrOAx4j9lJ0yYAXpEnEDnNwByAke5pE2VAIhAK4DYmBXnc6lUrg2pQf1VzWEjKyaWyUtqD1rqd+G+ITR"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-2.1.1.tgz_1496100989981_0.4887971356511116"},"directories":{}},"2.1.2":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.1.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"files":[],"dependencies":{"babel-explode-module":"^1.3.2"},"devDependencies":{"babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"7f2908e6cef3dfeab49877b6c2c50f8d9de1fd02","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.1.2","_shasum":"5f40593a1ca6ffdc3d2ed5550b39f967e714610c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"5f40593a1ca6ffdc3d2ed5550b39f967e714610c","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.1.2.tgz","integrity":"sha512-3O7BR6Cu6GMcI6SxlHLD8QHlx8xhCIWejnoXGiJ2k5CR1IS51mwR0/DFtsaN1P2oed8fktc38nM5kWAX7tSFXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX0BFUuXcuRwFMSWQCVcVRptTEmHc9cwQG9kHoMGEpEwIgcIS6X0lN+TCXxLJ6QLp3uQmhmCu4lJ5lSRNQSDwYE/Q="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-2.1.2.tgz_1496105285681_0.3994398710783571"},"directories":{}},"2.2.0":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.2.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"files":[],"dependencies":{"babel-explode-module":"^1.4.0"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"6a70e49e63ad8f3a9eacf987e1098dbbadc34ce2","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.2.0","_shasum":"62ccda7d379992eea9c1141400d1f63cd9918e16","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"62ccda7d379992eea9c1141400d1f63cd9918e16","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.2.0.tgz","integrity":"sha512-4MNmsPEdPY9n6lREYYKVs+VzLyjLz4q2zfdQGQ39H0Oi4fYn1rB/JEQ/lztIWgNbyF797ZyuGXMtDGxcY16KIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrR4HCfNXe2NAmXZ4w9m7jfsWKrAfxVG+lPnQupWC1EAiAplI3/QHpRlapHTO81JyWnyGXXtjy9limplST1V6vFfQ=="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module-2.2.0.tgz_1496373054154_0.6428125016391277"},"directories":{}},"2.2.1":{"name":"babel-helper-simplify-module","description":"Transform module using babel-explode-module to have a simpler structure","version":"2.2.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"files":[],"dependencies":{"babel-explode-module":"^1.4.0"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.46.0","jest":"^20.0.4"},"gitHead":"d4880c08715b84a1836d1c25303a9c48b0e691b2","bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","_id":"babel-helper-simplify-module@2.2.1","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"integrity":"sha512-wSBz9dzl8HtIen+C5aHlxeIXdse4TQSqarkjEFf5iL03++wAkDfp/8/S44GKRJodWlRZdzhJhNiDG5mhI0tquQ==","shasum":"54cf5b2f7930eef638458b2eaaeeacfbafa3842c","tarball":"https://registry.npmjs.org/babel-helper-simplify-module/-/babel-helper-simplify-module-2.2.1.tgz","fileCount":4,"unpackedSize":5210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdjZHCRA9TVsSAnZWagAAa1oP/RqtGfjhEFMljBoreCt4\ns3KEf+UlcU8JVX/blqBkkibedqcAGN0ejmKht52mzB6FOrFVpjcjUFGDE7OG\nGMCuTMXW6bdm3l5KCHURjtSU7vzXw0pih9BOfZniuPBaXR67sLDZG34qBMCn\nv6wIOCyEW9Z7st9HkFB1VaVIFLJ+B7au5X3isl1NF8xHQxzq12Rc7CMSQDSc\nFGLwH5p2//5cFroR8/AY+4ZsuF9fQzsJntwX3Fg79ph8K8j3ZNpK8fiLkxWp\n9IW/1t/jiLbwmkDFQzqPB342dehd0B0Uns3OzDTY4EEJIlfpoVvNzIg522ik\nbPtHzSYXO72dEYJhGA451REdcDkFi2STxxvKFWWtZWfJxOq0cynJ/THzhWqi\niII0Fp0KMaqdcWKS7KaM78U2/CgIiva9iHxUW3yqT7KVduH6ATaWTt2BRQ48\nBiKsYIOVmsvTeMn3Ok3x69jrs7GkWMEuqx/A0RwnqVpPHTfI4dgDNc0BdUw0\nq26RMqBKhGgZO3FZPoOnO6fj4KJF+Sj+WBZK+xSbmPU6MCj+OsR9Jceur5Q+\nJMSfYMOsurmjqknce4z+0yotVjA6CmXEX8J/1AI7qpUCg/1sfuzkgbrbkRHp\nFz3Hno0M2NuvmtW/Jnglqztm1g06BOyJYFRSWasA1X2ReR20vaaKmTTVmoHn\nqM4C\r\n=NtuD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcnlvTV6Zxcj2ROiPEcuNXPs/iAm3R3Ks/kyPyiHwiKAiEA/X9f13UYWGJsmqNu3QpyKbCOMjryK/gaGATNF/8nSfY="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-simplify-module_2.2.1_1534473799224_0.6389730933151205"},"_hasShrinkwrap":false}},"readme":"# babel-helper-simplify-module\n\n> Transform module using [babel-explode-module](https://github.com/babel-utils/babel-explode-module) to have a simpler structure\n\n```js\nimport {simplifyModule} from 'babel-helper-simplify-module';\n\nsimplifyModule(programPath);\n```\n\n**Before:**\n\n```js\nimport foo from \"mod\";\nimport {bar} from \"mod\";\n\nexport default function() {\n  // ...\n}\n\nexport const baz = 42,\n             bat = \"hello world\";\n\nexport * from \"bam\";\n```\n\n**After:**\n\n```js\nimport foo, {bar} from \"mod\";\n\nfunction _default() {\n  // ...\n}\n\nconst baz = 42;\nconst bat = \"hello world\";\n\nexport default _default;\nexport { baz };\nexport { bat };\nexport * from \"bam\";\n```\n\n## API\n\n### `explodedToStatements(exploded)`\n\n```js\nimport explodeModule from 'babel-explode-module';\nimport {explodedToStatements} from 'babel-helper-simplify-module';\n\nlet exploded = explodeModule(node);\nlet statements = explodedToStatements(exploded);\n```\n\n### `simplifyModule(path)`\n\n> This mutates the program.\n\n```js\nimport {simplifyModule} from 'babel-helper-simplify-module';\n\nsimplifyModule(programPath);\n```\n","maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2022-06-13T04:00:07.205Z","created":"2017-05-25T17:30:29.307Z","1.0.0":"2017-05-25T17:30:29.307Z","2.0.0":"2017-05-25T17:43:22.829Z","2.1.0":"2017-05-25T18:58:43.678Z","2.1.1":"2017-05-29T23:36:30.071Z","2.1.2":"2017-05-30T00:48:05.890Z","2.2.0":"2017-06-02T03:10:54.272Z","2.2.1":"2018-08-17T02:43:19.336Z"},"homepage":"https://github.com/thejameskyle/babel-helper-simplify-module#readme","repository":{"type":"git","url":"git+ssh://git@github.com/thejameskyle/babel-helper-simplify-module.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"bugs":{"url":"https://github.com/thejameskyle/babel-helper-simplify-module/issues"},"license":"MIT","readmeFilename":"README.md"}