{"_id":"@arnu515/lottie-player-zip-preact","name":"@arnu515/lottie-player-zip-preact","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arnu515/lottie-player-zip-preact","version":"1.0.0","description":"lottie-player-zip but with preact instead of react","license":"MIT","author":{"name":"arnu515"},"keywords":["vite","preact","lottie"],"homepage":"https://github.com/arnu515/lottie-player-zip-preact","repository":{"type":"git","url":"git+https://github.com/arnu515/lottie-player-zip-preact.git"},"main":"dist/lottie-player-zip.umd.js","module":"dist/lottie-player-zip.es.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/lottie-player-zip.es.js","require":"./dist/lottie-player-zip.umd.js"}},"scripts":{"dev":"vite","build:clean":"rimraf dist","build:typescript":"tsc -p .","build:vite":"vite build","build:emit-dts":"tsc src/lib/index.tsx --declaration --emitDeclarationOnly --jsx react --esModuleInterop --outDir dist || true","build":"npm-run-all -ls build:clean build:typescript build:vite build:emit-dts","preview":"vite preview","prepublishOnly":"npm-run-all -ls build"},"dependencies":{"@lottiefiles/lottie-player":"^1.5.7","@zip.js/zip.js":"^2.6.14"},"peerDependencies":{"@lottiefiles/lottie-player":"^1.5.7","@zip.js/zip.js":"^2.6.14"},"devDependencies":{"@preact/preset-vite":"^2.3.0","@types/node":"^18.7.3","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@vitejs/plugin-react":"^1.3.0","npm-run-all":"^4.1.5","preact":"^10.10.2","rimraf":"^3.0.2","typescript":"^4.6.3","vite":"^2.9.15"},"gitHead":"d59b85c8f89cf87de8420d84bbe4a13d9ba69212","bugs":{"url":"https://github.com/arnu515/lottie-player-zip-preact/issues"},"_id":"@arnu515/lottie-player-zip-preact@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.7.0","dist":{"integrity":"sha512-q1mrQbgkdT6xjMXJIJEdRJJei7IZK8dKA4WolZaxJsQ2Bc534VbymhafQr0HhcyFBDfc3IqK1R3EoYVCh+yBgA==","shasum":"5e0b1dce62d1fa36736c88a985018383f35112f4","tarball":"https://registry.npmjs.org/@arnu515/lottie-player-zip-preact/-/lottie-player-zip-preact-1.0.0.tgz","fileCount":6,"unpackedSize":25243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1bE3WkY0hiEceIivUuxRvmfNebio7ymvCO/WZGbS2xQIhAO+iu0bHtxPNEbLJkxP5rFMzoahq3LzLuASATi00pBCh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+iDjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGWQ/9E2Wt4DeErJC/yCpOmS6uaPyjt1TbczDz5zAbtaXdtrg2a3Dq\r\n4/+ECYAg8+N7VqjG7FwlmZjuXjrDiK2Z+OfUnBy29nYUkGWSo04OW5IOS4dg\r\n2mWdtzo3/gYDv7mCy+S3ZDJisBRUnxTIZKQVqa4vHKuD2JMDQJ1/9wijeeFT\r\nU4qunE1SZHAbrSbgrph2sXmd4xpuVb6aTzyVeEGzqQQ1EeQRdBK9vsQUGs1D\r\nnx9Aq3nu/6sE4qt+pTWJwbqPzMPO0brew8YvyTV/saHh/klwQ9ymcUWITSk+\r\nabFp8bPJlhejRYbj2k4XBNuR/i9cKhbmKfMujvgW7qtDfj7nYKd9Ce1bpjKk\r\n+593wQ8RM///y9luLk+jzNh8X8LJWQ7lOrtFV4MCFqAHwic4m3Y0ImdB6TbO\r\nJkGOW+dRNgabaeaCtFWC2Twr/iq3sn/W2hNHdXx06Ak7I7REATmlNcaNEm8o\r\naB8emFVEk8665Iv7LXwDbBejmXW9bnzlEykyNB6Bu9tXYSCP5HrUAO5nnihB\r\n3IChy6Jabyik4JiGHkMg7qTBN6ogkNwXSHd6m4hlEWqz/XmAGXyrqyJSE03a\r\no8Ul8qdBpHR26tRJcd4Ro3sLGuPjorxxpxqzAOQO1ZucvK5JVwr23V/NVpdG\r\nVqIu4+zHOYRFM6z9RYq62vXthYnahPBkUZU=\r\n=aedu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arnu515","email":"arnu5152@gmail.com"},"directories":{},"maintainers":[{"name":"arnu515","email":"arnu5152@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lottie-player-zip-preact_1.0.0_1660559587680_0.2411505191797374"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-15T10:33:07.606Z","1.0.0":"2022-08-15T10:33:07.836Z","modified":"2022-08-15T10:33:07.998Z"},"maintainers":[{"name":"arnu515","email":"arnu5152@gmail.com"}],"description":"lottie-player-zip but with preact instead of react","homepage":"https://github.com/arnu515/lottie-player-zip-preact","keywords":["vite","preact","lottie"],"repository":{"type":"git","url":"git+https://github.com/arnu515/lottie-player-zip-preact.git"},"author":{"name":"arnu515"},"bugs":{"url":"https://github.com/arnu515/lottie-player-zip-preact/issues"},"license":"MIT","readme":"# Lottie Player with ZIP Support\n\nThis React component is a wrapper for `@lottiefiles/lottie-player`. It enables extracting ZIP files and playing them with `@zip.js/zip.js` directly in the browser.\n\n**NOTICE** The zip file must have a `data.json` file containing the lottie sticker.\n\n## Installation\n\nCurrently, it only supports React. I plan on making this a web component so you can use it with any framework soon.\n\n```bash\nnpm install --save lottie-player-zip\n```\n\n## Usage\n\n```jsx\nimport LottiePlayerZIP from \"lottie-player-zip\"\n\nfunction Test() {\n\treturn (\n\t\t<>\n\t\t\t{/* Load any zip file hosted anywhere on the internet! */}\n\t\t\t{/* Load any zip file hosted anywhere on the internet! You can pass any prop supported by `@lottiefiles/lottie-player` */}\n\t\t\t<LottiePlayerZIP\n\t\t\t\turl=\"https://files.catbox.moe/6cia06.zip\"\n\t\t\t\twidth={512}\n\t\t\t\theight={512}\n\t\t\t/>\n\t\t\t{/* You can also use regular JSON files */}\n\t\t\t<LottiePlayerZIP url=\"https://files.catbox.moe/nlgyq2.json\" />\n\t\t</>\n\t)\n}\n```\n\n## To-do\n\n[ ] Add support for GZipped files (e.g. `.tgs`)\n[ ] Add support for passing local zip files (e.g. files uploaded by the user using `<input>`)\n[ ] Add first-class support for Deno. You can use `esm.sh` to import it for now.\n","readmeFilename":"README.md"}