{"_id":"@bacons/css-to-expo-linear-gradient","_rev":"3-4f515f811d6a6e21d176b6e3830296da","name":"@bacons/css-to-expo-linear-gradient","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@bacons/css-to-expo-linear-gradient","version":"1.0.0","description":"Convert a CSS linear gradient function to expo-linear-gradient props","main":"build/index.js","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module"},"repository":{"type":"git","url":"git+https://github.com/evanbacon/css-to-expo-linear-gradient.git"},"peerDependencies":{"react-native":"*"},"keywords":["expo","expo-linear-gradient","react-native"],"author":{"name":"Evan Bacon"},"license":"MIT","devDependencies":{"expo-module-scripts":"^2.0.0"},"types":"./build/index.d.ts","gitHead":"71a5f144a2132b08065bbfd242e4666f913dcff5","bugs":{"url":"https://github.com/evanbacon/css-to-expo-linear-gradient/issues"},"homepage":"https://github.com/evanbacon/css-to-expo-linear-gradient#readme","_id":"@bacons/css-to-expo-linear-gradient@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Wa9rLaIqiHksNiruTuFCutz3rVpvRsvVurS92FEpnIV69W5Gyc1aIcC4Tz6dd10qkYC4lszjSPo829e3UbA1MQ==","shasum":"34eed9443bf1afceeec6b67db7ef984e83d5b0f8","tarball":"https://registry.npmjs.org/@bacons/css-to-expo-linear-gradient/-/css-to-expo-linear-gradient-1.0.0.tgz","fileCount":10,"unpackedSize":35034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5Og6dj3x6BVxtsiiMgztk/hA9QYHnW632q3KhUILNRwIgM/IRb3u5D4NbGE2cxYc2b/GjVumNkLVDzGAQoVDhF5o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5/jVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTqQ//XV/MYrZa0s2cB7jzsJg/KSz/vxlYaKputRqdkjX1XbieAyx/\r\nYryAaW3ddu3VvVsUmV7TZ1Ht/cyjJSyckukdA5urde8VypVWsAIwngecpYF+\r\nDNwLj2zQVvbz1yXMdCpTz0Y+CNU7/O/IiNFSOj24JnSxEB/hfGGY7eWx7HXK\r\n6mnWkpsR0PyK5h51xC04fBvtQZXMX6TG1Pab0HQHS7xP8nFkKVpHd8MjT8K2\r\nM79Si7b0gyNZRDzZ5gEPDn23TrOJ4S0r/3jxCASirE55ZeEWwacn4QCNVljM\r\n4RmJuPx75Bci8NB2JHLU3x0SNnrMk9SRDTmC04TZQwsc1mIiybqRr2Is8m0n\r\nNsY4VejauOsrSlsvVwgkWUVcykr6LWIjFdVXC3e2KUZ9PE6POvH76BtxBKS5\r\n2PcCgsf7JOOxPlhq+nDiqzvQJIjzO0PLFB2xeauQqXhA3nIszqJ4Hpuo56NY\r\ntYhDuJFHW7xLxznbm3ZX+B7KlcF5k4ovu3HO1rr1KZ9PJRpX9s0SEbuOTHSH\r\noZK4Ow5JwHQOYuAsTlch5ryqveu7/UzpGpA8YCm7YjOThTsuHz3W+YIr0ELY\r\nk+I6mp5iVDQ9jm+Oc9qrJecer27jK+hFbtWL/QDtOPtrmVN5ELPrYKjMQlhf\r\nmuJVmQIGxM6WE2w657mlPQBT5HtQ4eX9ORE=\r\n=GlDz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"evanbacon","email":"baconbrix@gmail.com"},"directories":{},"maintainers":[{"name":"evanbacon","email":"baconbrix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-to-expo-linear-gradient_1.0.0_1659369685212_0.18060295488706846"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bacons/css-to-expo-linear-gradient","version":"1.1.0","description":"Convert a CSS linear gradient function to expo-linear-gradient props","main":"build/index.js","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module"},"repository":{"type":"git","url":"git+https://github.com/evanbacon/css-to-expo-linear-gradient.git"},"peerDependencies":{"react-native":"*"},"keywords":["expo","expo-linear-gradient","react-native"],"author":{"name":"Evan Bacon"},"license":"MIT","devDependencies":{"expo-module-scripts":"^2.0.0"},"types":"./build/index.d.ts","gitHead":"404bd7229e52aa11cd594c0a5b9208fe88522a40","bugs":{"url":"https://github.com/evanbacon/css-to-expo-linear-gradient/issues"},"homepage":"https://github.com/evanbacon/css-to-expo-linear-gradient#readme","_id":"@bacons/css-to-expo-linear-gradient@1.1.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-vGFykyvPN/eq+de7AW9Nz+952ugn2xRXeufQwTh9jjkaamtDis6cEWFRgHLbBPaVXuJl3vLXlZ0ayk73XWkNHg==","shasum":"98f1e3cd915531067a9ec6120ffbd2a49a922416","tarball":"https://registry.npmjs.org/@bacons/css-to-expo-linear-gradient/-/css-to-expo-linear-gradient-1.1.0.tgz","fileCount":10,"unpackedSize":37477,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf+Rw6NbJZUKSXQ15H96htpnq9nt4jnazJvtDC/tg7UwIgeHIIlndkJvIiv8jqNoKsPVYAD3p4xCMLUKuFqTaDUvI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMc4KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKthAAh22h9h8OjCwZ/xsI3vHHLmB8AG4zSW1jazBK21P78Sen4qUH\r\n36KyRwYLRMFiQteJdLVBzvEGWUObQ3X9iCIu2WQljXmUSyDbYKp5vYpVbEUa\r\nRUZgVBmtVgNkUmOZIL1qZmm9AFqrEbHzmoC7SfTgzkuELdowio2gRdGB3Sbm\r\nZU4xTkL3NmoOkq8GAQm0ED5sPu8p5IxMlDOPmZaRV7egTS8OIXfdHgTnIcas\r\n32a+IoVSBPcZI+lhDwHyPRtvlwCNQRIuHFBDZ4rtIsDto2oFfAgVgjN/p+r0\r\nG5jadXdvwsKSv1ADJ19Er/Zd58GTIJAv717doQQukPeyHdxwTJmfnHYleMnS\r\n45UC9OVpJzFslFO1Bz9HZCPzDwHjdaeozsh4Xa2s9WpCLHYTI0mUG4KU3Jrd\r\nPG7bHZrrlZfQ+daMP/5j9tZSvF1y4Xk3Wvt0d/6DJyW2rWRitdyxrU0bkc5U\r\nwm9ysewkH20JYBrHeaNLbSdKw7IOc+EDYXb7OksIo+39sT5RAEvGyieW8I0l\r\nuy6qgsma6DpAGWDSs7X6IfNYHkkeoYMgY9XQ2THP+YDLWuVGpCxuDz497s2E\r\n78l6I7eD3DZG+bpDgIXiTA6XOpI2g3tkM3rzyWMsTBZ+/Bczo9Yc1wt3u4RM\r\nWSS6sCpoLd8jo0p+GgP10bC5Cg/o+xwpppE=\r\n=O5r7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"evanbacon","email":"baconbrix@gmail.com"},"directories":{},"maintainers":[{"name":"evanbacon","email":"baconbrix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-to-expo-linear-gradient_1.1.0_1680985610144_0.9285692138039614"},"_hasShrinkwrap":false},"1.2.0":{"name":"@bacons/css-to-expo-linear-gradient","version":"1.2.0","description":"Convert a CSS linear gradient function to expo-linear-gradient props","main":"build/index.js","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module"},"repository":{"type":"git","url":"git+https://github.com/evanbacon/css-to-expo-linear-gradient.git"},"peerDependencies":{"react-native":"*"},"keywords":["expo","expo-linear-gradient","react-native"],"author":{"name":"Evan Bacon"},"license":"MIT","devDependencies":{"expo-module-scripts":"^2.0.0"},"types":"./build/index.d.ts","gitHead":"8d6fca7a48e569a82ed21ade333ccca10cfae1ad","bugs":{"url":"https://github.com/evanbacon/css-to-expo-linear-gradient/issues"},"homepage":"https://github.com/evanbacon/css-to-expo-linear-gradient#readme","_id":"@bacons/css-to-expo-linear-gradient@1.2.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-OHbwvg2hWozuNlfKO2NYKuy45HouW6oyKErwVYstJRByW0RNrBFfV6NncqVRx1G40Ok2yK8nYk9hPY3KLKBm0A==","shasum":"b60c88fcf8d11bab3a0ba4359633d9855bf2e180","tarball":"https://registry.npmjs.org/@bacons/css-to-expo-linear-gradient/-/css-to-expo-linear-gradient-1.2.0.tgz","fileCount":10,"unpackedSize":37477,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATblQwu7TpqcDi7/N8p3a85GeoDUKEADwyxEtABO46FAiBvt4ifAirXx/e9S6AVxC3+sUNKq+++Dcq9Zh07IBPqkg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNEyHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWqw/9Gt9xK0fwNxFJmm1jukZw8F3geLk20/yX1gxbn4jZnGzRmISU\r\nkZzU2QX4LKJvav4wK+1Aels0P+xVNf1oIFEJJtniiazUm7eX+IHe9r6fRU5C\r\nCH27xEr/pTXj549D72KC3A/u2QehpAK8pMI6nMj8wJ/wnEzxg2JQTewhiCDk\r\nxXtuil8y4PcPF/KUfbarAG2HuCVAbck9TzSvmBJHMfqS2Jp2CHpt18f/y8Qk\r\n8qYdIxVFrnkG1SdSUOo11ZYSRohbjHaFc29F1K0yLRjCdMtFyvRX0vsXzOOE\r\nUr0M7CE5XRTLn0DPSyrR25ve33tmsj+IdP13DIwoKMKnvgLvSFWzsJv0kdF1\r\n44HsHPSWo8jiIdH8B1bIbpn2uSqQRE5/i6HelI/t3ru+bfTUH9iXoqGLEbtS\r\n+LHUavhvH4o1J1JdX/iPBwFbr0Ey0v7tV8Jp8JGBRWYPfVEo473QHqHUEpqe\r\n3nr4KyJuEPjKlyWlPtbS3YPZliwyismko1a8f4/GtgIOa4CrhtmlmLgR/ya0\r\nugYEnAg6qE/yk1nb29GTalq7TkUMT2/1rBPxWkl4Vcabqss9qqIlwUDWvuTq\r\nyg29UvcBu3GJzji+T9JwpRj+B+ScIlszMfaumovSGX0KUV/kSHK9tZIegtHo\r\nnV2WBSFxqM94NI6dug/3btlA9nyno5EjmZ0=\r\n=qk+2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"evanbacon","email":"baconbrix@gmail.com"},"directories":{},"maintainers":[{"name":"evanbacon","email":"baconbrix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-to-expo-linear-gradient_1.2.0_1681149063643_0.007834316449287337"},"_hasShrinkwrap":false},"1.3.0":{"name":"@bacons/css-to-expo-linear-gradient","version":"1.3.0","description":"Convert a CSS linear gradient function to expo-linear-gradient props","main":"build/index.js","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module"},"repository":{"type":"git","url":"git+https://github.com/evanbacon/css-to-expo-linear-gradient.git"},"peerDependencies":{"react-native":"*"},"keywords":["expo","expo-linear-gradient","react-native"],"author":{"name":"Evan Bacon"},"license":"MIT","devDependencies":{"expo-module-scripts":"^2.0.0"},"types":"./build/index.d.ts","gitHead":"ccaf50111868b7cf217c2555cf1884a293dd7c72","bugs":{"url":"https://github.com/evanbacon/css-to-expo-linear-gradient/issues"},"homepage":"https://github.com/evanbacon/css-to-expo-linear-gradient#readme","_id":"@bacons/css-to-expo-linear-gradient@1.3.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-dzngxGHVfG2/e2Pxgy2GydIupBdVZay44q5BKrBCI5oMBTQPbFknPQ/nhm1RcuZPZdU5y8MoMXIZEKEf8yl28g==","shasum":"f179641de1acf5c7358829c6c4b53a4a90e6e5ee","tarball":"https://registry.npmjs.org/@bacons/css-to-expo-linear-gradient/-/css-to-expo-linear-gradient-1.3.0.tgz","fileCount":10,"unpackedSize":38175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8+a1fFAWLAppZgw191U2zASUoiTLcq/VczptO5gKCyAiAz6MXj70nST6Hj1En32U1I4HtClHZkIpBeVmx4FeqhNw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNEyiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofPA//SfmiFSu2zB5AM8n5B7AzXMqruo6o3pNjShJVfjmrRe028qp6\r\nKxZrwtC2lkSnGQYA9nHkB2Hi9ZJBFIw0bAPJEYd+wRZcGweX+LewMUJewry1\r\nPcgGcHJTffQb60gncbNlnON+93GQfc7zw5FKQut3PWmunLHm/zbZUIPjOkwW\r\nj7YaAdlqg20Q4IUTJEDBkM/ROXECmkiWmzJ17QlG377okZo5D0860icugiLO\r\njp1o5puO9sa3EiQJ89Nk78jHOzjy3lJId9u8efsRZjtpLZqIanPkRDuHgFuw\r\nUU85JhKqil5LSIZB0FZeTs8vvzn110PRh+JIT9/HAsaTl2ZwU9RmoImioaps\r\nVnCujLxp1nLPOCcygzeSV2QdVxSOSPDNPSbbCPdBwrVXP9c3boKE6b/kJgbp\r\nHLYjX9FPH4obFLqk0D8ud88VhYufBCg7y1BZ9pHPWVOSIYjKoTe48rLeiVc9\r\nEPmHNg73EG26bzS5Q4mVmipk5liBlDgSWdTCe6PI9MU7FIS4NUZV2ZqrbJnB\r\n/VF0aA7W+ZCFMcyxkFBKmHw6msViwFHlJ0siLvrs5o6PIUULesut1pKUEjco\r\nRwe3sYOgM3lQ07Z2iJ+wnQYPduOZlduDPrKyf7cCniNmx7j3gNEUjahSZCZV\r\nwaPCRQSzGmqXJfXhOgEfaHLRwMEoA4mlCFA=\r\n=nQ7f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"evanbacon","email":"baconbrix@gmail.com"},"directories":{},"maintainers":[{"name":"evanbacon","email":"baconbrix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-to-expo-linear-gradient_1.3.0_1681149090522_0.9312305729837611"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-01T16:01:25.127Z","1.0.0":"2022-08-01T16:01:25.359Z","modified":"2023-04-10T17:51:30.845Z","1.1.0":"2023-04-08T20:26:50.298Z","1.2.0":"2023-04-10T17:51:03.802Z","1.3.0":"2023-04-10T17:51:30.718Z"},"maintainers":[{"name":"evanbacon","email":"baconbrix@gmail.com"}],"description":"Convert a CSS linear gradient function to expo-linear-gradient props","homepage":"https://github.com/evanbacon/css-to-expo-linear-gradient#readme","keywords":["expo","expo-linear-gradient","react-native"],"repository":{"type":"git","url":"git+https://github.com/evanbacon/css-to-expo-linear-gradient.git"},"author":{"name":"Evan Bacon"},"bugs":{"url":"https://github.com/evanbacon/css-to-expo-linear-gradient/issues"},"license":"MIT","readme":"# @bacons/css-to-expo-linear-gradient\n\n> Demo: [snack](https://snack.expo.dev/@bacon/bacons-css-to-expo-linear-gradient)\n\nConvert a CSS linear gradient function to `expo-linear-gradient` props.\n\n## Add the package to your npm dependencies\n\n```\nyarn add @bacons/css-to-expo-linear-gradient\n```\n\n## Usage\n\n```tsx\nimport { fromCSS } from \"@bacons/css-to-expo-linear-gradient\";\nimport { LinearGradient } from \"expo-linear-gradient\";\n\nfunction App() {\n  return (\n    <LinearGradient\n      {...fromCSS(\n        `linear-gradient(0deg, #ff008450 0%, #fca40040 25%, #ffff0030 40%, #00ff8a20 60%, #00cfff40 75%, #cc4cfa50 100%);`\n      )}\n    />\n  );\n}\n```\n\n## Attribution\n\nMost of the code is adapted from [this project](https://github.com/niklasvh/html2canvas/tree/eeda86bd5e81fb4e97675fe9bee3d4d15899997f) which converts CSS linear gradients to canvas gradients.\n","readmeFilename":"README.md"}