{"versions":{"0.1.0":{"name":"babel-plugin-optional-require","version":"0.1.0","description":"Babel plugin to transpile object styles to template literal","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/satya164/linaria-object-styles.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","scripts":{"lint":"eslint .","flow":"flow","test":"jest"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-tester":"^5.0.0","dedent":"^0.7.0","eslint":"^4.12.0","eslint-config-satya164":"^1.0.1","flow-bin":"^0.59.0","jest":"^21.2.1","prettier":"^1.8.2"},"dependencies":{"resolve-cwd":"^2.0.0"},"gitHead":"14ae80879eb0ae10f4d3ba4f89407af9464b4a7d","bugs":{"url":"https://github.com/satya164/linaria-object-styles/issues"},"homepage":"https://github.com/satya164/linaria-object-styles#readme","_id":"babel-plugin-optional-require@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"satyajit.happy@gmail.com"},"dist":{"integrity":"sha512-0bSNcxxeUmQTlMfAMIXOyfu/il3R+4CgDcGkoDsZfZaSZZDDPbHCldUI0dCXSFMtGZyKLuh0DFwGAlPES5WaKQ==","shasum":"b66bdfa40d803b9135866d1f7ec410380d4c4294","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/babel-plugin-optional-require/-/babel-plugin-optional-require-0.1.0.tgz","fileCount":3,"unpackedSize":2148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1ziSCRA9TVsSAnZWagAAqLkP/A8UHeyd/YSrknl1ioGx\ntnlmetHsZLXv3Wsy24nO4Cl9A43GGaCGQ5+tVPbqFK4EIkk4KdhtIgWhaZ8U\nDL5qxlK4DnZq080DlNJEjaPH0QQKFLh+H7VhLdywVdtxh0+Q03Z2yrYF3Prj\nVN8VjTgWV/JstGh7x5FCR4/TgM8UVOgVRQzwWQk9pY0PkePT9pIp2w4ZVjA4\n4WmAdNeNWzA+fa4hnvkv4VUIr+JlPjAFpoeUjUMS1lsTeWQqqYJgWN6xkuBB\nRL2QFk1cApR/4IFAGDoosfrw73k5PNO7MI+Gi1es8xzyOltqv3FjwV6EDnvs\nAjTGh1B05Eb/slA2fhqTOvNnn1yiAOBgkUv8Py3VXmTkTGl67Swmq6HBrdlO\nue9FdlHBcWHFTI3HdTCNGDtKNoEsSlyL/fPqz2ogplV9IHjynpJ2DMiHs4wC\nMy74u4EQq8lGRmuUIHcKBb5GSJ1y3m/HuCb7Z1A7W2UcdZ0d2fRCBkC17ZcP\nmonzIC5jvdhz5J3eMx8I34ic4w8Jv1VXB+Cn63nWc94Z3JLUqvc7nY1rXQdL\n02+iNEXPtrFJI8ZyGMAe9SNHuzk85BYBLLl/d3vOuVvcc+z0JsJJz/KWjQPV\nKs2aOXUAYWR8nMNCgOBJt1mVuk1SkR1JUdPvD1/XTqaIh/172YBPBAscARYo\n3dcH\r\n=Br0s\r\n-----END PGP SIGNATURE-----\r\n","size":1162},"maintainers":[{"name":"anonymous","email":"satyajit.happy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-optional-require_0.1.0_1524054160793_0.6599012863755054"},"_cnpmcore_publish_time":"2021-12-20T10:26:26.276Z","contributors":[]},"0.1.1":{"name":"babel-plugin-optional-require","version":"0.1.1","description":"Babel plugin to transpile object styles to template literal","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/satya164/linaria-object-styles.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","scripts":{"lint":"eslint .","flow":"flow","test":"jest"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-tester":"^5.0.0","dedent":"^0.7.0","eslint":"^4.12.0","eslint-config-satya164":"^1.0.1","flow-bin":"^0.59.0","jest":"^21.2.1","prettier":"^1.8.2"},"dependencies":{"resolve-from":"^4.0.0"},"gitHead":"dfc930f5fdce9d4943ad40c42d01de799b37cf06","bugs":{"url":"https://github.com/satya164/linaria-object-styles/issues"},"homepage":"https://github.com/satya164/linaria-object-styles#readme","_id":"babel-plugin-optional-require@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"satyajit.happy@gmail.com"},"dist":{"integrity":"sha512-NBA4kJvA8F7SUyPAJeOZ43NfamyDbAExta2bXwocT/uBb2r8DZDtB9rRSxjh3T3sF5tE86sUO/hoEiLcUxeKiw==","shasum":"436c1d5404aa606052d2398acf6a928cc18861cc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/babel-plugin-optional-require/-/babel-plugin-optional-require-0.1.1.tgz","fileCount":3,"unpackedSize":2853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2GDDCRA9TVsSAnZWagAA1UUP/3ykLC0d3s3p+9bPzGax\noMCLUKG8lczf5lqGaX+BFXf670Wcxbt9nXmCjuNVwlre1NpzgEBKXm70cxmS\n9NGn/4qFs9/F1OGncR1RCZPmAnhi6qklXVX8IJ+YNvAYdXRzBBxB74+tSCVJ\nYcWissgaqQ5ZBgT9hfQ/dcG1s1hL6TQ7vmsh7C13Ev47+WKey8ePrGmW8/D1\nRPuwpCUdGnkn8kI8PCFB1Xm5lACC2pbmExUNxOqO7xXEe8TxR9Vd49zw2DMM\njhxp5QeaiXoPVSqPUTpDMmoMcVCxUBJoge8+xZpHKgpEjkvlpHbzQj2SUBb4\nogl6p+WPLIF25Ev8x8s5TMw+wCe0z60DwjK2FvHTXrMI+z7En8YrTpRH8udM\nJ/QEHnfyJlMl1lIuFQgxDrI9hI2Mz1k2UajSk/yKV2xsvpxnrlRoZrecIc2F\nPgefXLu1qfqRxDrkKIHDaxVlbi13qDYW+Ji8qBTy1P7sfJuKCCxxgJZiix49\nuHN67PqXkt2Ct1062xrJnz+gWlYOTa4N9/HwRnvsY4SLziWvlUyU22IJmMe1\njOrrizrnCVxsliCMdufzO6ELvk0tjJml2ZyXclqSnc3V3/YpOjzKjzAmB10k\nlwtGluvdqOZ3HVzC3b8QKln94DzLgz0qShLiauwx418nRus4nlf947ZlRCvS\nZ5ny\r\n=zTiw\r\n-----END PGP SIGNATURE-----\r\n","size":1459},"maintainers":[{"name":"anonymous","email":"satyajit.happy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-optional-require_0.1.1_1524129987024_0.4240594576992589"},"_cnpmcore_publish_time":"2021-12-20T10:26:27.179Z","contributors":[]},"0.2.0":{"name":"babel-plugin-optional-require","version":"0.2.0","description":"Babel plugin to transpile object styles to template literal","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/satya164/linaria-object-styles.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","scripts":{"lint":"eslint .","flow":"flow","test":"jest"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-tester":"^5.0.0","dedent":"^0.7.0","eslint":"^4.12.0","eslint-config-satya164":"^1.0.1","flow-bin":"^0.59.0","jest":"^21.2.1","prettier":"^1.8.2"},"dependencies":{"is-builtin-module":"^2.0.0","resolve-from":"^4.0.0"},"gitHead":"8aaaa7e88c6dd1cd895b3ae1ef9fd639925f1b45","bugs":{"url":"https://github.com/satya164/linaria-object-styles/issues"},"homepage":"https://github.com/satya164/linaria-object-styles#readme","_id":"babel-plugin-optional-require@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"satyajit.happy@gmail.com"},"dist":{"integrity":"sha512-arNvuw5p4kt+lSx57peLITslfwq3cGk0IAwldQrwpr+lxKUmL2evpJnKyJiOJLl2cAURZ7N4MFW4F/p5FXNAVQ==","shasum":"9f95655348c451c5ffef59f64f6472461c92060f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/babel-plugin-optional-require/-/babel-plugin-optional-require-0.2.0.tgz","fileCount":3,"unpackedSize":3305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2eOuCRA9TVsSAnZWagAAy4kP/2sUkWLo5l5LJ9U4/nvG\nryBPf3Vj/3FxDmyGaisinWMS8Euvurdp2fiYpcr5+DZUVXullXQ1CG4gzNFJ\n9+MJ6PXGi5sn91+eYakbYHAEGmv5qkY4jGS0/BbwUL+WRe9FpLwZwhvcOtkz\nWTE/5ayRNzBZzd1LJaUuTqWFT++UUY8B2uh+gHDDMTjk7Ptg0WAFuW70zdEd\ndrZbKI1raGwIbKl15ndO8g8TvMpDVbfrB6lXc3+LRziiZvisDVz6tENoUKSQ\ng0oA50ZK9gj5CT1nH2EByNOpg2fUmFSAlAeZFSfVvZovAQApuJVH1BQmv56B\npoDP64v5PFpvAOCfvF5i/szvZO2vtdRhyuqNvBp3Mn/BpnBkkjxFNUTfoj2i\ntvqwKz92zQw7Oy3QmDBzTv8tVfaEti2pIFB3bnuA5F01+eXfuihkOBy90fD7\nLCUjgYySYkOgxNthaPHFDsf9ojOg3QYtSGVLn/UHUmQgThOqU6Eiu5Q6QiRY\nA6BrPLJAYTOnWwsdJgGmRgUC4ETJHEH5NI3Tgbjjq865sduMUQySpyTnKmvV\ndS6DJ4vBJECqn80ASYUkKkn1lWAQzp54y2VOvy8eM2w6cLOpdkVRmS4vFbGs\nRW1NPs1LVhNgPlBdUiNYHg2n00WLFEbIV5hbP4pbUo+jeTfUkzvG5y3BujNx\nDMv4\r\n=9jUq\r\n-----END PGP SIGNATURE-----\r\n","size":1617},"maintainers":[{"name":"anonymous","email":"satyajit.happy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-optional-require_0.2.0_1524229038294_0.8855526525862678"},"_cnpmcore_publish_time":"2021-12-20T10:26:28.071Z","contributors":[]},"0.3.0":{"name":"babel-plugin-optional-require","version":"0.3.0","description":"Babel plugin to transpile object styles to template literal","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/satya164/linaria-object-styles.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","keywords":["babel-plugin","babel","module","require","import"],"scripts":{"lint":"eslint .","flow":"flow","test":"jest"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-tester":"^5.0.0","dedent":"^0.7.0","eslint":"^4.12.0","eslint-config-satya164":"^1.0.1","flow-bin":"^0.59.0","jest":"^21.2.1","prettier":"^1.8.2"},"dependencies":{"is-builtin-module":"^2.0.0","resolve-from":"^4.0.0"},"gitHead":"9071ba906eefbd1240c33e1307b43ab07e6f36f5","bugs":{"url":"https://github.com/satya164/linaria-object-styles/issues"},"homepage":"https://github.com/satya164/linaria-object-styles#readme","_id":"babel-plugin-optional-require@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"satyajit.happy@gmail.com"},"dist":{"integrity":"sha512-gP7Ed6rjU4+XcMCKi795LOcpo+Bg11lufFmF5LdikHfqAiaofiST5LqfNOVe2lHdg5Fg4h9P8bnQsmQ+eR8m/A==","shasum":"ab4ecad1cfe46c0bba0f0cab8bf248b3be61f213","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/babel-plugin-optional-require/-/babel-plugin-optional-require-0.3.0.tgz","fileCount":3,"unpackedSize":3952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3bnCCRA9TVsSAnZWagAArjAQAIxdMHeVtwI7XZiOxhhX\ngevKc7GTRVi833dRg0bdx8iWfwMTm+e9wjDkCj/lmxDrwmSj2jd3OlxdqAK/\njotla6kS1tQAgmbCbmsv9KWg7ECAPivF8hAgoxYVWBSaxQHBG10HckJvO08m\nduY03UuEMq6edYatQQUUxT1zD8svaigO7k7HGP0bNEJ5ODNBRGAYpmHOLXBG\n4AZcct/y7Cgv2SqzkTROkd1ryo3mXTikZ+OxOFnMAH12Ma7qgNzjxCzSCLdf\n8blbh/4yAGd/CR1kZOPPcpZyN/WhDtEufPI4VLG0nmkwBfTdl7Ts+1ukZNFR\nhQQTiP+fcv99AeYZh57T6HvA78b+ruetZw3ZvDLgu2EGmyRo14r/pmRrGQa3\nl2zvFYV0RpRw/CD2JsxOkQOQajNIafsmwjwzQSPyPhWc7YaJ8slxOJLO17+x\nSZxFN4/vBZGS98PqN89L3Vm4wLlcJ93QzVtjsXK4IhUKdISsSDRwGCWZeAdB\nHbppETRcEV0Yxyz9QaA8U8KITn6By7lQbGpnFIqSdTTWlW8dEZgkLrfJaJIQ\nkXsABpnPn5ProqX4SNGXbPgtZMNtKCB4QiUtSxxm2ByV7hmyGnWe5k7f2O/W\nNH+g/8RS0UV5EDtLr0aXDbQL7xuLgAY9ARECXlZXDSlYlsQXI+R7UsC+8vFv\nwlq8\r\n=Rk74\r\n-----END PGP SIGNATURE-----\r\n","size":1770},"maintainers":[{"name":"anonymous","email":"satyajit.happy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-optional-require_0.3.0_1524480449820_0.33248407588559603"},"_cnpmcore_publish_time":"2021-12-20T10:26:28.948Z","contributors":[]},"0.3.1":{"name":"babel-plugin-optional-require","version":"0.3.1","description":"Babel plugin to transpile object styles to template literal","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/satya164/babel-plugin-optional-require.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","keywords":["babel-plugin","babel","module","require","import"],"scripts":{"lint":"eslint .","flow":"flow","test":"jest"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-tester":"^5.0.0","dedent":"^0.7.0","eslint":"^4.12.0","eslint-config-satya164":"^1.0.1","flow-bin":"^0.59.0","jest":"^21.2.1","prettier":"^1.8.2"},"dependencies":{"is-builtin-module":"^2.0.0","resolve-from":"^4.0.0"},"gitHead":"c48749a7da26ec6d7cdf30d926638e7405b012cd","bugs":{"url":"https://github.com/satya164/babel-plugin-optional-require/issues"},"homepage":"https://github.com/satya164/babel-plugin-optional-require#readme","_id":"babel-plugin-optional-require@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"satyajit.happy@gmail.com"},"dist":{"integrity":"sha512-qL9pdz6fgMjO3NZ1igO8BEJrWooLgkuhJ2yc4ligr3lMvEq7tzFZuz3JWSa6P05khrvTz1USf0POkxAjlFnkLw==","shasum":"bac36cac88b25dccadd6b074c0f4f0c0520eb27b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/babel-plugin-optional-require/-/babel-plugin-optional-require-0.3.1.tgz","fileCount":3,"unpackedSize":3952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3iQuCRA9TVsSAnZWagAA8D4QAJ3kscPI2I5eC8WbOtI1\nH1PbwrZZe6ULrQ2Etghf/QY4a0aXXWpnOWBIrfQWqxcdp0s/nU1pGRgI49l0\nr7hMiEAx5I1i9mC3tslC8W5ykYpMGwvo0BCuNQRnv0FP8ya+X2fDS5rw9RlR\n/vym92EnfbwvfRzPm6ilDPBNU6yxfum1RzYdBbahoQvptXrrADBX5rLkHQTm\njWnZYCAwIpN0LtjQo0hTT6VpAqNVSTZJn2yWt/jv9ovBjoyW/bJFER3KVntm\ndI2mWj5Gkid1WfTrbHeEzCnkABEYoA4wA37hd+4gMG5xYnKD2ZmbVYw1xUf1\nGXnS9jDzwcIULV9qpsGlXV91n5fuAiYVb15xnoqqtqIRV/BS1CnZLcCZputT\nm/Vg0ScDqXcAtjylGACJ3Q6d20l4ijQGYjWHeMazzct/6I5QIVuJzAO6tBc4\nPo+q7INBNuvNCrNggy43joIbHFlX2I15iSp/ClBYf8KxbgzGmdQlIDnd5u7M\nxZDDxIJPgyRn7dCn+jAjmtfwJA9eIj82uAVbI7VoTmLa3QmZAooD3xzzlTVi\nG2btIODU5ehrEsGJRs2LbfJ6S5gsCb6VN00lVSxAJJa1y7BcdJS7L4X7d7ee\nb6voGLPsTnuoa/e0LqIBKBActjXO+TWhXdrx6mcc3h8z/7EZBk/kDNJL3ZOw\ndPWE\r\n=ajro\r\n-----END PGP SIGNATURE-----\r\n","size":1760},"maintainers":[{"name":"anonymous","email":"satyajit.happy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-optional-require_0.3.1_1524507693751_0.15348556779594058"},"_cnpmcore_publish_time":"2021-12-20T10:26:29.033Z","contributors":[]}},"dist-tags":{"latest":"0.3.1"},"name":"babel-plugin-optional-require","time":{"created":"2022-01-26T18:46:05.608Z","modified":"2022-01-26T18:46:05.608Z","0.1.0":"2018-04-18T12:22:40.885Z","0.1.1":"2018-04-19T09:26:27.163Z","0.2.0":"2018-04-20T12:57:18.385Z","0.3.0":"2018-04-23T10:47:29.882Z","0.3.1":"2018-04-23T18:21:33.998Z"},"readme":"# babel-plugin-optional-require\n\nBabel plugin to optionaly require modules. Useful with a bundler like [Metro](https://github.com/facebook/metro) which doesn't support optional `require` statements.\n\nThis is primarily useful if you want add an dependency to your library that's optional and you want users to be able to opt-out of it to save bundle size. You can also use it in apps to load configuration files only if they exist.\n\n## Usage\n\nInstall the plugin:\n\n```sh\nyarn add --dev babel-plugin-optional-require\n```\n\nThen include it in your `.babelrc`:\n\n```json\n{\n  \"plugins\": [\n    \"optional-require\"\n  ]\n}\n```\n\n## Options\n\n- `builtins: boolean`: Whether to resolve Node builtins. Default: `false`.\n- `blacklist: string[]`: List of modules we assume to be unavailable without resolving. Default: `[]`.\n- `whitelist: string[]`: List of modules we assume to be available without resolving. Default: `[]`.\n\n## Example\n\nTo optionally `require` a module, you need to wrap it in `try/catch`:\n\n```js\nlet a;\n\ntry {\n  a = require('optional-module');\n} catch (e) {\n  // Handle failure from loading the module\n}\n```\n\nIf the module `optional-module` doesn't exist, the `require` call will be replaced with an IIFE that throws an error, so you can catch it and handle it at runtime. Otherwise, the code is left unchanged.","users":{}}