{"_id":"svelte-filepond","_rev":"4-ce92c006061f0afcd1590cf52d31580c","name":"svelte-filepond","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.1":{"name":"svelte-filepond","version":"0.0.1","description":"A handy FilePond adapter component for Svelte","homepage":"https://pqina.nl/filepond","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pqina/svelte-filepond.git"},"svelte":"src/index.js","module":"dist/index.mjs","main":"dist/index.js","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"keywords":["svelte","sveltejs","filepond","file","upload","drag","drop","browse","image","preview"],"author":{"name":"PQINA","url":"https://pqina.nl"},"devDependencies":{"@rollup/plugin-node-resolve":"^6.0.0","rollup":"^1.20.0","rollup-plugin-svelte":"^5.0.0","svelte":"^3.0.0"},"peerDependencies":{"filepond":">=3.7.x <5.x"},"gitHead":"dc837519cc18cf3dfcc4da4e4242b0ebf9413818","bugs":{"url":"https://github.com/pqina/svelte-filepond/issues"},"_id":"svelte-filepond@0.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-R5z/Gj/2VSdV70GxvW226ww4zrVyV2EFTXrsWIdn7sEB7uYWIJvvciUNQVTfYZfcAgGsa4gprGsuqWNG3auSKw==","shasum":"7c20379213dac746192499d3d1de649d6db51c4b","tarball":"https://registry.npmjs.org/svelte-filepond/-/svelte-filepond-0.0.1.tgz","fileCount":7,"unpackedSize":588421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVft/CRA9TVsSAnZWagAANqsP/1EAK0QKqshkP1BPHG+w\nHbZgpMtKg4K6TgS40lIwiwHfnskZ8XJwf6OCgnOPVKf3VvjNUQy49EHs3Ib2\nxgVhXPa8XsqgXhC09zWQdGlN10j8z9Vbi2yscFq/b6VQ/pvbDexHzrJMNwIv\nf3Zr4WHch0nGprsP/yBgYk6tYt9iqiGxUGPqLeEiWJAekCmZqC2M9/KJC5Xu\nGfwTqzyGNByYG1Iwl4IYV4oj4I4pOV6rCfoTisVuUhxCxs003BGPeV0p/pQ4\nj4M8SbmSgTSVM+CF/ZCnzyK8D0DRdz1C3ma6H4AQSb6wGypm6iN5Kj2GDCuF\ndwQy/ESwEIsO9uN4gAODXmnHUju29qGEvUaS+vrbOwSOtQwC4Fw2ljwxAjCl\nLO4fsTmooUWTcceKoc3LrYG2TOGk9ULhma/T6wul8YWJCATIpYBukBTbOYG6\nuhGASmzjKMhC+Tt3g8gjXN1+65tzw7bMMNT6I4V2ZSdoXARZdnDmiyYFHdQE\nKMM+K+yg66Hkr9k9fKkHr7FJuZKAXRgU/VnnXt1IA+KWUpnwwPFfj134Okxu\nsWiuJZpHgF/juNtr5Occ59yMIWbUs9ktYHzWcHNufWWr18jZ4cJljCXp0BDm\nCuoZGnUCYjE1jS/9hYu5tftoW1FJ2oP3LsVsrxIc/dJR+yKNyKo4LKgCnXPG\nU+Ah\r\n=STUg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtfm28Q08ai9T8rvhyd5076nMboVgzFEe9idFcbZJHbAIgTUOqgnAdjP3cDNHCzJo5ojycaKT8fSreh6cYjFBR1m8="}]},"maintainers":[{"name":"pqina","email":"info@pqina.nl"}],"_npmUser":{"name":"pqina","email":"info@pqina.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-filepond_0.0.1_1599470462660_0.5928406183703903"},"_hasShrinkwrap":false},"0.2.0":{"name":"svelte-filepond","version":"0.2.0","description":"A handy FilePond adapter component for Svelte","homepage":"https://pqina.nl/filepond","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pqina/svelte-filepond.git"},"svelte":"src/index.js","module":"dist/index.mjs","main":"dist/index.js","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"keywords":["svelte","sveltejs","filepond","file","upload","drag","drop","browse","image","preview"],"author":{"name":"PQINA","url":"https://pqina.nl"},"devDependencies":{"@rollup/plugin-node-resolve":"^6.0.0","rollup":"^1.20.0","rollup-plugin-svelte":"^5.0.0","svelte":"^3.0.0"},"peerDependencies":{"filepond":">=3.7.x <5.x"},"gitHead":"b43c0bcfa5c8a28cf9ab46b867746417890d7dd6","bugs":{"url":"https://github.com/pqina/svelte-filepond/issues"},"_id":"svelte-filepond@0.2.0","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-0VxMWgyZSFnApJ0gWT43OvNQ7hpAZI4InrHRQZCe+pw5ZtLiBS4+XZxpX84sOv1wHN6Jhrw1h/0nw+9+4neyuw==","shasum":"30626b2205b916da33f998d33429e069cfd433a9","tarball":"https://registry.npmjs.org/svelte-filepond/-/svelte-filepond-0.2.0.tgz","fileCount":7,"unpackedSize":587622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmOD1CRA9TVsSAnZWagAALYUP/jN53HxTBKZ8vbXP1jYL\npbnf/Gt3PhDtCe+B/0fzgYTHP7FfaYhHCiDu+2MeUm1OFcyL8PpIvcMa6iN/\nesvBAm5SgH3BAcpHqZajpzbi+T1cPH3uRgFkMwgxD2x+YRncKpzFXBTYuIAC\nwkY/M5o/rD1L0Xr/T6gFTgSTu/qGecbrekx72Z5IQEevpAXyLqPFCbz2NRQG\nBYR9lDegDfBsR9n0wSQAy4NApVmhuS4JbeHlglb9TnOR8mKI1nuRMJEGuxs3\n0Hi9hwGmzJ2DFTveB9TVoaPLdU4EjddroxeHFo9UAuY1rvz54A30Xpdl2HkK\n7LaM1zIAQVFTP+Lo098rbnbiE81KYecRXpgX1bJnR4wzocg5/z8nSJ4lBeDF\n2jKO+KQmo8za23GB2u6XxmiS4lTVRFjyyN9Scm9cze60Yn+Qmn3kPUYFj4jF\n8UDsyDklwUrItsxGHbJHl/E8INY9dLA5LaNXu94A6qtOAQ9E/WuC+EV7ZIhX\nW7LXgtPL9xbIdn0tUVfLO716bhMc8yTw7L8KtjoYET/kmZj6rdT0nqFEK21K\nvC9BNn1S7mO4dd2c3JxzYDfcF1DFTehwPyNLoJU1bky0M+Bvxghu+BhvU2We\n+bdhx+SiEj2WzV4T+LQI1y20Y3BCsRBfU2wScf3za1B3tMUKtS0v3al+YydE\nGcGp\r\n=V3l+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGyfmQsVQtOdkuP6awCObIHjJzZHK6cDTJOitvS5GHOwIgRG5/myf9SZORHK+XImqyW1lzCNqVJspGDRcTZ++cMzE="}]},"_npmUser":{"name":"pqina","email":"info@pqina.nl"},"directories":{},"maintainers":[{"name":"pqina","email":"info@pqina.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-filepond_0.2.0_1620631796671_0.35923580156311674"},"_hasShrinkwrap":false},"0.2.1":{"name":"svelte-filepond","version":"0.2.1","description":"A handy FilePond adapter component for Svelte","homepage":"https://pqina.nl/filepond","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pqina/svelte-filepond.git"},"exports":{".":{"svelte":"./src/index.js"}},"module":"dist/index.mjs","main":"dist/index.js","types":"types/index.d.ts","scripts":{"build":"npx rollup -c","prepublishOnly":"npm run build"},"keywords":["svelte","sveltejs","filepond","file","upload","drag","drop","browse","image","preview"],"author":{"name":"PQINA","url":"https://pqina.nl"},"devDependencies":{"@rollup/plugin-node-resolve":"^6.0.0","rollup":"^1.20.0","rollup-plugin-svelte":"^6.1.1","svelte":"^3.31.0"},"peerDependencies":{"filepond":">=3.7.x <5.x"},"gitHead":"fec1041b8078d3392c982acfbde35606e7ba203c","bugs":{"url":"https://github.com/pqina/svelte-filepond/issues"},"_id":"svelte-filepond@0.2.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-I4y+6C+p6o5WOraahv2KICdTtqVbIiTaEoEDvzBBNlYqTYTBK2x6jHTXjCywRXdSZBh683SnkvOpTGKQusqGEA==","shasum":"38dbcce1cdfd4b5bfcb11d161ad65bd0d826200d","tarball":"https://registry.npmjs.org/svelte-filepond/-/svelte-filepond-0.2.1.tgz","fileCount":8,"unpackedSize":595074,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUxDD2zp2FV33H9oCYFIYzZwUtV0yeMgDxQcWIJ+4xIQIgfATwPDErRQJJ5J7bEcrBCFXO1azbERAPk0XmFF7OchA="}]},"_npmUser":{"name":"pqina","email":"info@pqina.nl"},"directories":{},"maintainers":[{"name":"pqina","email":"info@pqina.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-filepond_0.2.1_1703771898326_0.8797771005626522"},"_hasShrinkwrap":false},"0.2.2":{"name":"svelte-filepond","version":"0.2.2","description":"A handy FilePond adapter component for Svelte","homepage":"https://pqina.nl/filepond","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pqina/svelte-filepond.git"},"exports":{".":{"svelte":"./src/index.js"}},"svelte":"src/index.js","module":"dist/index.mjs","main":"dist/index.js","types":"types/index.d.ts","scripts":{"build":"npx rollup -c","prepublishOnly":"npm run build"},"keywords":["svelte","sveltejs","filepond","file","upload","drag","drop","browse","image","preview"],"author":{"name":"PQINA","url":"https://pqina.nl"},"devDependencies":{"@rollup/plugin-node-resolve":"^6.0.0","rollup":"^1.20.0","rollup-plugin-svelte":"^6.1.1","svelte":"^3.31.0"},"peerDependencies":{"filepond":">=3.7.x <5.x"},"gitHead":"54f70b00a349807d802c4554b382f15c4af9e977","bugs":{"url":"https://github.com/pqina/svelte-filepond/issues"},"_id":"svelte-filepond@0.2.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-MnXOiX5aiyLzyn+iuG2grZDPrLQsSOyalyQQ/tl04uBzllFu6kkXCbKHMXTx6rdco8SuJzd5b5j+klD7hiY6Zg==","shasum":"a09d7b5741f522a0457b9b5b1e6c6ef2d31a733f","tarball":"https://registry.npmjs.org/svelte-filepond/-/svelte-filepond-0.2.2.tgz","fileCount":8,"unpackedSize":595102,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNvYFH9Jcrvx7sJBvohUT0cu6+mMz7LEbavyaXJ3rDfgIhAPDA0USgH8CTXRzh6Q9xT7NCXkQOs0mlvRjkVRGetB8Q"}]},"_npmUser":{"name":"pqina","email":"info@pqina.nl"},"directories":{},"maintainers":[{"name":"pqina","email":"info@pqina.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-filepond_0.2.2_1703772143284_0.8770369920358339"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-07T09:21:02.660Z","0.0.1":"2020-09-07T09:21:02.810Z","modified":"2023-12-28T14:02:23.720Z","0.2.0":"2021-05-10T07:29:56.870Z","0.2.1":"2023-12-28T13:58:18.517Z","0.2.2":"2023-12-28T14:02:23.546Z"},"maintainers":[{"name":"pqina","email":"info@pqina.nl"}],"description":"A handy FilePond adapter component for Svelte","homepage":"https://pqina.nl/filepond","keywords":["svelte","sveltejs","filepond","file","upload","drag","drop","browse","image","preview"],"repository":{"type":"git","url":"git+https://github.com/pqina/svelte-filepond.git"},"author":{"name":"PQINA","url":"https://pqina.nl"},"bugs":{"url":"https://github.com/pqina/svelte-filepond/issues"},"license":"MIT","readme":"# Svelte FilePond\n\nSvelte FilePond is a handy adapter component for [FilePond](https://pqina.nl/filepond/), a JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/pqina/svelte-filepond/blob/master/LICENSE)\n[![npm version](https://badge.fury.io/js/svelte-filepond.svg)](https://www.npmjs.com/package/svelte-filepond)\n![npm](https://img.shields.io/npm/dt/svelte-filepond)\n\n---\n\n[<img src=\"https://github.com/pqina/filepond-github-assets/blob/master/header.svg\" alt=\"FilePond\"/>](https://www.buymeacoffee.com/rikschennink/)\n\n[Buy me a Coffee](https://www.buymeacoffee.com/rikschennink/) / [Use FilePond with Pintura](https://pqina.nl/pintura/?ref=github-filepond) / [Dev updates on Twitter](https://twitter.com/rikschennink/)\n\n---\n\n### Core Features\n\n- Accepts **directories**, **files**, blobs, local URLs, **remote URLs** and Data URIs.\n- **Drop files**, select on filesystem, **copy and paste files**, or add files using the API.\n- **Async uploading** with AJAX, or encode files as base64 data and send along form post.\n- **Accessible**, tested with AT software like VoiceOver and JAWS, **navigable by Keyboard**.\n- **Image optimization**, automatic image resizing, **cropping**, and **fixes EXIF orientation**.\n- **Responsive**, automatically scales to available space, is functional on both **mobile and desktop devices**.\n\n[Learn more about FilePond](https://pqina.nl/filepond/)\n\n\n<img src=\"https://github.com/pqina/filepond-github-assets/blob/master/filepond-animation-01.gif?raw=true\" width=\"370\" alt=\"\"/>\n\n---\n\n### Also need Image Editing?\n\n**Pintura the modern JavaScript Image Editor** is what you're looking for. Pintura supports setting **crop aspect ratios**, **resizing**, **rotating**, **cropping**, and **flipping** images. Above all, it integrates beautifully with FilePond.\n\n[Learn more about Pintura](https://pqina.nl/pintura/?ref=github-svelte-filepond)\n\n<img src=\"https://github.com/pqina/filepond-github-assets/blob/master/filepond_pintura.gif?raw=true\" width=\"600\" alt=\"\"/>\n\n---\n\nThis package needs PostCSS and Svelte Preprocess, see the example folder for the required `postcss.config.js` and `rollup.config.js` changes. You can run `npm install` in the example folder and it will set up the example project.\n\nInstallation:\n\n```bash\nnpm install svelte-filepond filepond --save\n```\n\nUsage:\n\n```svelte\n<style global>\n@import 'filepond/dist/filepond.css';\n@import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css';\n</style>\n\n<script>\nimport FilePond, { registerPlugin, supported } from 'svelte-filepond';\n\n// Import the Image EXIF Orientation and Image Preview plugins\n// Note: These need to be installed separately\n// `npm i filepond-plugin-image-preview filepond-plugin-image-exif-orientation --save`\nimport FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation'\nimport FilePondPluginImagePreview from 'filepond-plugin-image-preview'\n\n// Register the plugins\nregisterPlugin(FilePondPluginImageExifOrientation, FilePondPluginImagePreview);\n\n// a reference to the component, used to call FilePond methods\nlet pond;\n\n// pond.getFiles() will return the active files\n\n// the name to use for the internal file input\nlet name = 'filepond';\n\n// handle filepond events\nfunction handleInit() {\n\tconsole.log('FilePond has initialised');\n}\n\nfunction handleAddFile(err, fileItem) {\n\tconsole.log('A file has been added', fileItem);\n}\n</script>\n\n<div class=\"app\">\n\n\t<FilePond bind:this={pond} {name}\n\t\tserver=\"/api\"\n\t\tallowMultiple={true}\n\t\toninit={handleInit}\n\t\tonaddfile={handleAddFile}/>\n\n</div>\n```\n\n[Read the docs for more information](https://pqina.nl/filepond/docs/patterns/frameworks/svelte/)\n","readmeFilename":"README.md"}