{"_id":"@d0whc3r/file-saver","_rev":"2-b86197be413185dafc8568466331ced4","name":"@d0whc3r/file-saver","dist-tags":{"next":"1.3.8-1","latest":"1.3.8-0"},"versions":{"1.3.8-0":{"name":"@d0whc3r/file-saver","version":"1.3.8-0","description":"An HTML5 saveAs() FileSaver implementation","main":"dist/FileSaver.js","module":"src/FileSaver.js","scripts":{"test":"echo \"Error: no test specified\" && exit 0","build:development":"mkdir -p dist && babel src/FileSaver.js --out-file=dist/FileSaver.js","build:production":"NODE_ENV=production npm run build:development -- --out-file=dist/FileSaver.min.js","build":"npm run build:development && npm run build:production","prepublishOnly":"npm run build","release":"np"},"repository":{"type":"git","url":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8"},"keywords":["filesaver","saveas","blob"],"author":{"name":"Eli Grey","email":"me@eligrey.com"},"license":"MIT","bugs":{"url":"https://github.com/eligrey/FileSaver.js/issues"},"homepage":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.6.1","babel-preset-minify":"^0.2.0","np":"^5.2.1"},"gitHead":"186d07c3f493029da08913d5c11f9893e433be5a","_id":"@d0whc3r/file-saver@1.3.8-0","_nodeVersion":"10.17.0","_npmVersion":"6.13.2","dist":{"integrity":"sha512-K7vBZ0KIVhhSRnysEyRQ7pV+wKAh/lWpq71jLF3r64UOJXIkfNIylJcQMR3sRMtcYdusr0crkI0nvlwlHW3wXQ==","shasum":"7d88bcc025b32a22a2c70b60577fd18babb95365","tarball":"https://registry.npmjs.org/@d0whc3r/file-saver/-/file-saver-1.3.8-0.tgz","fileCount":5,"unpackedSize":18882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAzsgCRA9TVsSAnZWagAAbAMP/1JjtRKSyPccl6D2K5Il\nbZdML/Ty+3llu63mJGqr/WmO6JPd1ZuXb4O6qfa6kjr+BhYGDLW8XPRj4qkj\nv4BfUFPrTlxCp3U3LFkWZw8xW20CTAdWrFaX/d9wpjPmN0fNXwhXwy3jjowJ\nnqlrGMwEur0zX0N4arqswcyQgktIbQAJyzQnvUV3Vumjiz6gI2k8JFCt+yaM\nyF3P7Urva0tD0Wra0BEPVWUmjb9abw+vCDq0HjhHu5aH+CYp1UtozYdVXT07\nXAREUBIGoKAh0U/h8+ewtRzbNz1xhHWHZW3Nkzcp53OnPh9sdbmo+khVlPsV\nq3hv0AO5LWSAVnLJEnB6vzULv4xIsfDwntRJ32pJny8jqETfz2CSresTqA3s\nT5MCMO3DA/mi5uXlKl8XqiWUQ8bsAZAEKXbFeEHi3UEkpD/TPP7sGTkcuRey\n4eYIR96XcI6Q0nt4tVNrN0vPJIQ1o9mPDiZngb3WuMOPlNaDbNoDAam4wx7x\n8JDB3G2lT9ultXam6FiScvAt+9obvf+wU7uVKJx3dkRfUEghgFaRjvQ84/dv\nBxXguWFNZQQ9Sz/rdzm+ZlTJN+x16NMrdmjSWg/Yw1Ehe5a0xU63SdT6iyYP\n3v944NxfYlDgzAQikLj8zRRUB9uF7FXKhhsCRNylCIjM9cvtzP0ZdeG1/ETV\ngQQH\r\n=z2+h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh9v0vmM5htDiCwWe5ku6HyvACtaAZgzx1Ctm/sMAlYQIgVCLIMC1gFt1rCS7DhCfq9jE6+tRravPpsWJG3kWekUs="}]},"maintainers":[{"name":"d0whc3r","email":"d0whc3r@gmail.com"}],"_npmUser":{"name":"d0whc3r","email":"d0whc3r@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-saver_1.3.8-0_1577270047620_0.5972255572345042"},"_hasShrinkwrap":false},"1.3.8-1":{"name":"@d0whc3r/file-saver","version":"1.3.8-1","description":"An HTML5 saveAs() FileSaver implementation","main":"dist/FileSaver.js","module":"src/FileSaver.js","scripts":{"test":"echo \"Error: no test specified\" && exit 0","build:development":"mkdir -p dist && babel src/FileSaver.js --out-file=dist/FileSaver.js","build:production":"NODE_ENV=production npm run build:development -- --out-file=dist/FileSaver.min.js","build":"npm run build:development && npm run build:production","prepublishOnly":"npm run build","release":"np"},"repository":{"type":"git","url":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8"},"keywords":["filesaver","saveas","blob"],"author":{"name":"Eli Grey","email":"me@eligrey.com"},"license":"MIT","bugs":{"url":"https://github.com/eligrey/FileSaver.js/issues"},"homepage":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.6.1","babel-preset-minify":"^0.2.0","np":"^5.2.1"},"readme":"If you need to save really large files bigger then the blob's size limitation or don't have \nenough RAM, then have a look at the more advanced [StreamSaver.js](https://github.com/jimmywarting/StreamSaver.js)\nthat can save data directly to the hard drive asynchronously with the power of the new streams API. That will have\nsupport for progress, cancelation and knowing when it's done writing\n\nFileSaver.js\n============\n\nFileSaver.js implements the `saveAs()` FileSaver interface in browsers that do\nnot natively support it. There is a [FileSaver.js demo][1] that demonstrates saving\nvarious media types.\n\nFileSaver.js is the solution to saving files on the client-side, and is perfect for\nwebapps that need to generate files, or for saving sensitive information that shouldn't be\nsent to an external server.\n\nLooking for `canvas.toBlob()` for saving canvases? Check out\n[canvas-toBlob.js][2] for a cross-browser implementation.\n\nSupported browsers\n------------------\n\n| Browser        | Constructs as | Filenames    | Max Blob Size | Dependencies |\n| -------------- | ------------- | ------------ | ------------- | ------------ |\n| Firefox 20+    | Blob          | Yes          | 800 MiB       | None         |\n| Firefox < 20   | data: URI     | No           | n/a           | [Blob.js](https://github.com/eligrey/Blob.js) |\n| Chrome         | Blob          | Yes          | [500 MiB][3]  | None         |\n| Chrome for Android | Blob      | Yes          | [500 MiB][3]  | None         |\n| Edge           | Blob          | Yes          | ?             | None         |\n| IE 10+         | Blob          | Yes          | 600 MiB       | None         |\n| Opera 15+      | Blob          | Yes          | 500 MiB       | None         |\n| Opera < 15     | data: URI     | No           | n/a           | [Blob.js](https://github.com/eligrey/Blob.js) |\n| Safari 6.1+*   | Blob          | No           | ?             | None         |\n| Safari < 6     | data: URI     | No           | n/a           | [Blob.js](https://github.com/eligrey/Blob.js) |\n| Safari 10.1+   | Blob          | Yes          | n/a           | None         |\n\nFeature detection is possible:\n\n```js\ntry {\n    var isFileSaverSupported = !!new Blob;\n} catch (e) {}\n```\n\n### IE < 10\n\nIt is possible to save text files in IE < 10 without Flash-based polyfills.\nSee [ChenWenBrian and koffsyrup's `saveTextAs()`](https://github.com/koffsyrup/FileSaver.js#examples) for more details.\n\n### Safari 6.1+\n\nBlobs may be opened instead of saved sometimes—you may have to direct your Safari users to manually\npress <kbd>⌘</kbd>+<kbd>S</kbd> to save the file after it is opened. Using the `application/octet-stream` MIME type to force downloads [can cause issues in Safari](https://github.com/eligrey/FileSaver.js/issues/12#issuecomment-47247096).\n\n### iOS\n\nsaveAs must be run within a user interaction event such as onTouchDown or onClick; setTimeout will prevent saveAs from triggering. Due to restrictions in iOS saveAs opens in a new window instead of downloading, if you want this fixed please [tell Apple](https://bugs.webkit.org/show_bug.cgi?id=102914) how this bug is affecting you.\n\nSyntax\n------\n\n```js\nFileSaver saveAs(Blob/File data, optional DOMString filename, optional Boolean disableAutoBOM)\n```\n\nPass `true` for `disableAutoBOM` if you don't want FileSaver.js to automatically provide Unicode text encoding hints (see: [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark)).\n\nExamples\n--------\n\n### Saving text using require\n```js\nvar FileSaver = require('file-saver');\nvar blob = new Blob([\"Hello, world!\"], {type: \"text/plain;charset=utf-8\"});\nFileSaver.saveAs(blob, \"hello world.txt\");\n```\n\n### Saving text\n\n```js\nvar blob = new Blob([\"Hello, world!\"], {type: \"text/plain;charset=utf-8\"});\nFileSaver.saveAs(blob, \"hello world.txt\");\n```\n\nThe standard W3C File API [`Blob`][4] interface is not available in all browsers.\n[Blob.js][5] is a cross-browser `Blob` implementation that solves this.\n\n### Saving a canvas\n\n```js\nvar canvas = document.getElementById(\"my-canvas\"), ctx = canvas.getContext(\"2d\");\n// draw to canvas...\ncanvas.toBlob(function(blob) {\n    saveAs(blob, \"pretty image.png\");\n});\n```\n\nNote: The standard HTML5 `canvas.toBlob()` method is not available in all browsers.\n[canvas-toBlob.js][6] is a cross-browser `canvas.toBlob()` that polyfills this.\n\n### Saving File\n\nYou can save a File constructor without specifying a filename. The\nFile itself already contains a name, There is a hand full of ways to get a file\ninstance (from storage, file input, new constructor)\nBut if you still want to change the name, then you can change it in the 2nd argument\n\n```js\nvar file = new File([\"Hello, world!\"], \"hello world.txt\", {type: \"text/plain;charset=utf-8\"});\nFileSaver.saveAs(file);\n```\n\n\n\n![Tracking image](https://in.getclicky.com/212712ns.gif)\n\n  [1]: http://eligrey.com/demos/FileSaver.js/\n  [2]: https://github.com/eligrey/canvas-toBlob.js\n  [3]: https://code.google.com/p/chromium/issues/detail?id=375297\n  [4]: https://developer.mozilla.org/en-US/docs/DOM/Blob\n  [5]: https://github.com/eligrey/Blob.js\n  [6]: https://github.com/eligrey/canvas-toBlob.js\n\nInstallation\n------------------\n\n```bash\nnpm install file-saver --save\nbower install file-saver\n```\n\nAdditionally, TypeScript definitions can be installed via:\n\n```bash\nnpm install @types/file-saver --save-dev\n```\n","readmeFilename":"README.md","gitHead":"dcea8115e1d9ea126c742427f465d1f9f908015b","_id":"@d0whc3r/file-saver@1.3.8-1","_nodeVersion":"10.17.0","_npmVersion":"6.13.2","dist":{"integrity":"sha512-dO7lnPCc1VBfQWveTgu0IKf1ajyHPJ0VGJW5/IO7OJ2EXhJTB0hrH3eos00ajmKF4xPRDHlZaP2/fzaTg/D9MA==","shasum":"6e65a0f8c5a6f78737f2bba505b4dcb8d28071cd","tarball":"https://registry.npmjs.org/@d0whc3r/file-saver/-/file-saver-1.3.8-1.tgz","fileCount":5,"unpackedSize":18882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAztUCRA9TVsSAnZWagAAmwIP/0J6M66r11uB9wceqYUX\nQDjLfA3Nr0miDhUQGeR9fNPmNPqsk2e5f9MNa0opqQJajCeAzEZlM7KeNWQP\nPLKwVIHWLk5u49gNh6EQoivSHoagCqpkO4a1GXYxd5FHN1VQkXuLsC5YozyW\nqSMPB5V2vBRCby5aW8E0MycoJ3ogMopz/VmrUH8bxuz7OwKmcM9+g2neNVtg\n+XJHJKTMgrWImVQHnb1P48s2Uh25THJxfGirPRnTpgnPlnAgcXGCTKPK+4rW\nK2Jv6qqefSn4vfnZnAKZsYsI6zqr2xdzIGm5R2ptATI8zh+qznCjJwWwzYZg\njNQqPcFagNHFV2t+Vp50kr0YH8h5kVs1ea8o+FKM0bCwUXCodRIYsDUuasd3\nxyUEvtqTOfgUcvxRK4H1MVgrtWz6Prreoo5hrmkWNgGCSF19yY+lvH5B9iBw\nF010vofSxIrPTQhzALmfWj3F8p7s0pvKGNxzBT1Jlae6aSpxCsyJKI2wKdnz\nNR7Dv9LQDNsrC3uZcRfDeaYRIo8IBF18Mz17C7aZHz3wLy8gGbLF+9+GwAU/\niVUthft5Uo/rZagDKXbxL8swXqviPaXP8t7AS3pScYMKrGnDIeXTrVTiHJXk\n1B4pjmSJD84a40sJpp3hL5RSwR2j8bgPrBN5av9VHY+WWQvM+87F02WOufZn\n974H\r\n=pZWL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbNMRXFly177e4bSVxcIXxbPImqp3pr4dHJUL8YOfRmAiEAvrTOUGOyjbfd4ku0bF/3UAb6f4TtJ07gOQwJu+Fx68g="}]},"maintainers":[{"name":"d0whc3r","email":"d0whc3r@gmail.com"}],"_npmUser":{"name":"d0whc3r","email":"d0whc3r@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-saver_1.3.8-1_1577270099904_0.6142848621609249"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-25T10:34:07.590Z","1.3.8-0":"2019-12-25T10:34:07.759Z","modified":"2022-04-05T02:28:50.754Z","1.3.8-1":"2019-12-25T10:35:00.020Z"},"maintainers":[{"name":"d0whc3r","email":"d0whc3r@gmail.com"}],"description":"An HTML5 saveAs() FileSaver implementation","homepage":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8","keywords":["filesaver","saveas","blob"],"repository":{"type":"git","url":"https://github.com/d0whc3r/FileSaver.js/tree/v1.3.8"},"author":{"name":"Eli Grey","email":"me@eligrey.com"},"bugs":{"url":"https://github.com/eligrey/FileSaver.js/issues"},"license":"MIT","readme":"","readmeFilename":""}