{"_id":"@artsy/gemup","_rev":"18-e9ce18e916e5a4706f228552812e2224","name":"@artsy/gemup","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.3":{"name":"@artsy/gemup","version":"0.0.3","keywords":["gemup","gemini","artsy","s3","upload"],"author":{"url":"http://craigspaeth.com","name":"Craig Spaeth","email":"craigspaeth@gmail.com"},"_id":"@artsy/gemup@0.0.3","maintainers":[{"name":"alloy","email":"eloy.de.enige@gmail.com"},{"name":"zephraph","email":"zephraph@gmail.com"},{"name":"arjelks","email":"ashley.jelks@artsymail.com"},{"name":"artsy-engineering","email":"opensource@artsymail.com"},{"name":"erikdstock","email":"erik.d.stock@gmail.com"},{"name":"xtina-starr","email":"c.thompsonms@gmail.com"},{"name":"l2succes","email":"l2succes@gmail.com"},{"name":"damassi","email":"damassi.pappas@gmail.com"},{"name":"anandaroop","email":"anandaroop.roy+npm@gmail.com"},{"name":"yuki24","email":"yk.nishijima@gmail.com"},{"name":"orta","email":"orta.therox@gmail.com"},{"name":"mzikherman","email":"mzikherman@gmail.com"},{"name":"oxaudo","email":"oxaudo@yahoo.com"},{"name":"eessex","email":"eve@artsymail.com"}],"homepage":"https://github.com/artsy/gemup#readme","bugs":{"url":"https://github.com/artsy/gemup/issues"},"dist":{"shasum":"0397a472bb69432dab3d2d66ca30556815aa96e7","tarball":"https://registry.npmjs.org/@artsy/gemup/-/gemup-0.0.3.tgz","fileCount":6,"integrity":"sha512-W///stXDTz3jSQw8UtT0BClVk4DLOsVp7a8v12efsEZvrZNT+85YBqPWq2DP1EX3ILZR1hGZhbKr/Gl5uti56Q==","signatures":[{"sig":"MEQCID/Q3UcKb+79eez1twMWRf6h7LzaOaOMp1TGkHKd5qQbAiBToRTl6xwJf5fVt7zT5jCdF7OYerkroGPDhDsZNB/p8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJco6JqCRA9TVsSAnZWagAAgzcQAI63GAFzQtvTBcvGNT1K\nMHXNVhVHIAqUX7G7PXzuApSp7CN7ONrb8lpdew5oOMBkumr7YYhrv6uCTk5T\nB1OexWdAxZ2Vj7x0EsVZffRDppfcSU27YF8F206+BGQEnZtpex+jtLA3QJHE\nDRyxjPqpcarKmNHNGsMcxwFmzLhIxzS9tcDmJLQ2Vt3O/2w/UIbosnG2b23b\nKioAPOPu06l+EeE5t0uo9ndZ6qBpkde/8c2LZtzAL7S9a40ERsV661QF3VWO\najDnYzmnKw9dZ7ZkyWjQF1dto2/RjcRpBPQVFCDCDugmFWl2uIa3eWvuMrou\ny1U/2IMTZfH9XwM/73vFfpdFy68JfG/j5HM4aRUNhX3EuGQ5lqVBNc1hRpuj\nGNqrhIxRaaFKgEtJHqxVhvvpGEfR0gm27NtudyelQVYtaQH+THNoH6qfggxo\n6cuUqZqDDsOrYJsNqd3pbJqZhvAnVRMw98k2yW8s12Ssgf1dJ7yylSwg8cLw\n6Vmv7VQytA8PXhFt4c96NUq4XIVnzu2NE7pSLOKSrsmUxcR4zyrMSi4h08CS\nfGfBr/uTrx2I7NCYnf2B47POq16YjMDZTAS4zVz6BlU8B6tMubPN0Nbk2raM\nzGBzTJPrmQqwkTCGWk2FH/jwUmDesd0HunRA3jXFLlpx6j9WHSS5h52fzkXY\n0XAK\r\n=IFsz\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">= 0.10.x"},"gitHead":"201718745d86520cbc4d13ae8d022954a1f0a846","scripts":{"test":"mocha"},"_npmUser":{"name":"artsy-engineering","email":"opensource@artsymail.com"},"repository":{"url":"git+ssh://git@github.com/artsy/gemup.git","type":"git"},"_npmVersion":"6.4.1","description":"Lightweight Javascript utility for using Artsy's Gemini service to upload directly to S3.","directories":{},"_nodeVersion":"10.13.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"mocha":"*","sinon":"*","should":"*","express":"*"},"_npmOperationalInternal":{"tmp":"tmp/gemup_0.0.3_1554227817942_0.11264110248522785","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@artsy/gemup","version":"0.1.0","keywords":["gemup","gemini","artsy","s3","upload"],"author":{"url":"http://craigspaeth.com","name":"Craig Spaeth","email":"craigspaeth@gmail.com"},"_id":"@artsy/gemup@0.1.0","maintainers":[{"name":"anandaroop","email":"anandaroop.roy+npm@gmail.com"},{"name":"arjelks","email":"ashley.jelks@artsymail.com"},{"name":"artsy-engineering","email":"opensource@artsymail.com"},{"name":"damassi","email":"damassi.pappas@gmail.com"},{"name":"dblandin","email":"dblandin@gmail.com"},{"name":"eessex","email":"eve@artsymail.com"},{"name":"erikdstock","email":"erik.d.stock@gmail.com"},{"name":"icirellik","email":"icirellik@gmail.com"},{"name":"mzikherman","email":"mzikherman@gmail.com"},{"name":"oxaudo","email":"oxaudo@yahoo.com"},{"name":"sweir27","email":"sweir27@gmail.com"},{"name":"xtina-starr","email":"c.thompsonms@gmail.com"},{"name":"yuki24","email":"yk.nishijima@gmail.com"},{"name":"zephraph","email":"zephraph@gmail.com"}],"homepage":"https://github.com/artsy/gemup#readme","bugs":{"url":"https://github.com/artsy/gemup/issues"},"dist":{"shasum":"b1e25b2c225a0a457762791a456f7d075974fb7c","tarball":"https://registry.npmjs.org/@artsy/gemup/-/gemup-0.1.0.tgz","fileCount":6,"integrity":"sha512-Ipzswe6djF3c1fbiZLnlX2XTUoOUHRFkkj7aQdJknabA6+/TCNYEt3f2GGd8TmjqC3dwc/PhoIyKfYJd8vAYdQ==","signatures":[{"sig":"MEQCIHUzSkxtlDLNcZL2SDkPk1Rt5QuXHAOMZa58xb5pmy+IAiBvILR24wBMhN7TJghO3tMCvHmgp1GAdKTwvzI2k6qspQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJNexCRA9TVsSAnZWagAAe10QAKHu14/wTwVdHvgbFbpO\nzROImopw9+hKBurdTMRh5nrj5DNb/t4sUbNyBg4bdrV/6G73PlYcFNRu6jxt\nNkOG+2NzR4MkYIGMQukzyinyGvBEjcMD8HB8ZhHj+ze0GdopmT8N3+PeqXTX\nEHS341LhdmLsSNmrGkJGMe1b3FbGFQbQhxbssyQ6Wu2AaX+7phx/qYHclNu0\n2eFDsQvRRnJRTPqB7BqzTEwOif4WSWoOFMYPJgGYRuG078FTN7g7EMVaylCi\ntbAxGCys2Kq5hEK9eb3QOSv5wk7xpTt88iDxgzR8z8TFPcvMYDq7IUSaMwH7\nlMN5qBx2ohBFnQfaVk970LR7dQmmtGpUucp2R+mvlS9YVZ4e5K0p6nRiT5kn\n1eJiNISUfEpdARXlugsJ2CeRyttGKjGhr5m31zp4B9hYBpcjBhs1ji09sVEP\nJ9oAHr9gGXA+K8S4NK6o61Z51Vk/HxeQbmtU+iHbHN0LTavLW6jyFxD1tQUF\nvAX6T9tK7MF6a12BoVbZf8McXwsV16q8SszrmWjludUyk8VuWiEWSIOJiXcr\nBqh2C/6H4tKgaLaUuLvqzDH9erz1LaOmM2aIxkRfi5AQY84bos1fYP+2InxY\nqws5UNSrvMTQKtAgwlV9qenFR0Q4iiCGbYF3pDv7CYrZngYFUv61vW4JCWod\nNO0a\r\n=yO0n\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">= 0.10.x"},"gitHead":"162dd76272769d0fb36544c39f6633c18f76c336","scripts":{"test":"mocha"},"_npmUser":{"name":"dblandin","email":"dblandin@gmail.com"},"repository":{"url":"git+ssh://git@github.com/artsy/gemup.git","type":"git"},"_npmVersion":"6.13.1","description":"Lightweight Javascript utility for using Artsy's Gemini service to upload directly to S3.","directories":{},"_nodeVersion":"12.16.1","dependencies":{"uuid":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"*","sinon":"*","should":"*","express":"*"},"_npmOperationalInternal":{"tmp":"tmp/gemup_0.1.0_1596250032734_0.192200749832091","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@artsy/gemup","version":"0.2.0","keywords":["gemup","gemini","artsy","s3","upload"],"author":{"url":"http://craigspaeth.com","name":"Craig Spaeth","email":"craigspaeth@gmail.com"},"license":"MIT","_id":"@artsy/gemup@0.2.0","maintainers":[{"name":"joeyaghion","email":"joey@artsymail.com"},{"name":"artsy-engineering","email":"opensource@artsymail.com"},{"name":"damassi","email":"damassi.pappas@gmail.com"},{"name":"anandaroop","email":"anandaroop.roy+npm@gmail.com"},{"name":"mzikherman","email":"mzikherman@gmail.com"},{"name":"dblandin","email":"dblandin@gmail.com"}],"dist":{"shasum":"c55ee490cbace406d96433c730687caaf7621a4a","tarball":"https://registry.npmjs.org/@artsy/gemup/-/gemup-0.2.0.tgz","fileCount":8,"integrity":"sha512-rekRsGjqFeiRm8zYzV0R1KcoO1mDqvazUQQRGVj5JlXmn6R0qZJIn8Y3YZRF5YZ2wnRFHHLk0z39kQ7Oq/KIYw==","signatures":[{"sig":"MEUCIDZZjQg6zMdbt0xZg+JXz8hy9jBzXGbYmw80ndOTfO/1AiEAhdLiv/tqigPc2eQaSwtcrbOtwZwpmpzAp6g3i0NXmMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7116},"engines":{"node":">= 0.10.x"},"scripts":{"test":"mocha"},"_npmUser":{"name":"damassi","email":"damassi.pappas@gmail.com"},"repository":{"url":"http://github.com/artsy/gemup.git","type":"git"},"description":"Lightweight Javascript utility for using Artsy's Gemini service to upload directly to S3.","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) Craig Spaeth craigspaeth@gmail.com, Art.sy, 2014\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","dependencies":{"uuid":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"*","sinon":"*","should":"*","express":"*"},"_npmOperationalInternal":{"tmp":"tmp/gemup_0.2.0_1702592260941_0.37326249481285223","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-04-02T17:56:57.913Z","modified":"2025-11-18T23:31:28.079Z","0.0.3":"2019-04-02T17:56:58.045Z","0.1.0":"2020-08-01T02:47:12.880Z","0.2.0":"2023-12-14T22:17:41.161Z"},"author":{"url":"http://craigspaeth.com","name":"Craig Spaeth","email":"craigspaeth@gmail.com"},"license":"MIT","keywords":["gemup","gemini","artsy","s3","upload"],"repository":{"url":"http://github.com/artsy/gemup.git","type":"git"},"description":"Lightweight Javascript utility for using Artsy's Gemini service to upload directly to S3.","maintainers":[{"email":"opensource@artsymail.com","name":"artsy-engineering"},{"email":"anandaroop.roy+npm@gmail.com","name":"anandaroop"},{"email":"mzikherman@gmail.com","name":"mzikherman"},{"email":"dblandin@gmail.com","name":"dblandin"},{"email":"joey@artsymail.com","name":"joeyaghion"}],"readme":"# gemup\n\nLightweight Javascript utility for using Artsy's Gemini service to upload directly to S3. Used internally at Artsy, so not useful to general public—but open source by default!\n\n## Installation\n\nUse `gemup` one of three ways:\n\n### Install with Yarn/NPM\n\n```\nyarn add @artsy/gemup\n```\n\n## Example usage\n\n### JavaScript\n\nImport into your project:\n\n```javascript\nimport gemup from \"@artsy/gemup\";\n```\n\nAdd an upload function and reference it on an `<input>`:\n\n```javascript\nconst handleUploadClick = (e) => {\n  gemup(e.target.files[0], {\n    app: \"force\",\n    geminiHost: 'https://media.artsy.net',\n    fail: function (err) {\n      console.log(\"Ouch!\", err);\n    },\n    add: function (src) {\n      console.log(\"We got a data-uri image client-side!\", src);\n    },\n    progress: function (percent) {\n      console.log(\"<3 progress bars, file is this % uploaded: \", percent);\n    },\n    done: function (src) {\n      console.log(\"Done uploading, here's the S3 url: \", src);\n    },\n  });\n};\n\n...\n\n<input type=\"file\" multiple={false} onChange={(e) => handleUploadClick(e)} />\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}