{"_id":"browser-filesaver","_rev":"8-83fc01a7932a3482bbf96b72071e414b","name":"browser-filesaver","description":"Cross-browser implementation of W3C saveAs API","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"browser-filesaver","version":"1.0.0","description":"Cross-browser implementation of W3C saveAs API","main":"FileSaver.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["file","save","polyfill"],"author":{"name":"Eli Grey"},"license":"MIT","repository":{"type":"git","url":"https://github.com/tmpvar/browser-filesaver"},"bugs":{"url":"https://github.com/tmpvar/browser-filesaver/issues"},"homepage":"https://github.com/tmpvar/browser-filesaver","gitHead":"0d06d6423c0181acf618ed05819f9afbc8026600","_id":"browser-filesaver@1.0.0","_shasum":"ffb086bf047c6c3dc4ae2b5e055b0307fccc6cae","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"tmpvar","email":"tmpvar@gmail.com"},"maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}],"dist":{"shasum":"ffb086bf047c6c3dc4ae2b5e055b0307fccc6cae","tarball":"https://registry.npmjs.org/browser-filesaver/-/browser-filesaver-1.0.0.tgz","integrity":"sha512-UzyTzaFhlwsRqVrlLAA0YulCMHgHqTM1g9vuDc0b3Vhce1ellqciS7DCYDCpdsYA9FFpxSG4vswAUgtfB6Ojvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZn+e7FeAggl5tVX4ABrMH+WUzSrrbg1EZ8ZWnzov9aAiEAukmSbDgy0nDiHgOiSjoFZsHRMQezLapOyJZiZo2js3k="}]}},"1.1.0":{"name":"browser-filesaver","version":"1.1.0","description":"Cross-browser implementation of W3C saveAs API","main":"FileSaver.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["file","save","polyfill"],"author":{"name":"Eli Grey"},"license":"MIT","repository":{"type":"git","url":"https://github.com/tmpvar/browser-filesaver"},"bugs":{"url":"https://github.com/tmpvar/browser-filesaver/issues"},"homepage":"https://github.com/tmpvar/browser-filesaver","gitHead":"7cf805333dff88485aa9f536d6e5d24462d4d128","_id":"browser-filesaver@1.1.0","_shasum":"c6624abf08b1ce00664ec440361efbe56d4b12e6","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4-nightly20150820b1aa3f0247","_npmUser":{"name":"tmpvar","email":"tmpvar@gmail.com"},"dist":{"shasum":"c6624abf08b1ce00664ec440361efbe56d4b12e6","tarball":"https://registry.npmjs.org/browser-filesaver/-/browser-filesaver-1.1.0.tgz","integrity":"sha512-+0OGUkU2RXN7mWroTvGNX7C/JOUGzzbFYodE07qp2Su0eCLdKF5Qr8bY7kcHHEHMWDwo72VWYWB8xr291wqcGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8e2w818QIcACVQRtKFimkIUd50Iv7711N+HFOWk4z5AIhAPoe5R7FzZ2qK606IFUi5Le4VEYTwShx1LdoPoVkSyRC"}]},"maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}]},"1.1.1":{"name":"browser-filesaver","version":"1.1.1","description":"Cross-browser implementation of W3C saveAs API","main":"FileSaver.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["file","save","polyfill"],"author":{"name":"Eli Grey"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/tmpvar/browser-filesaver.git"},"bugs":{"url":"https://github.com/tmpvar/browser-filesaver/issues"},"homepage":"https://github.com/tmpvar/browser-filesaver","gitHead":"b57ef14d37d6a59db353271b66accef72335dc86","_id":"browser-filesaver@1.1.1","_shasum":"1c351b2f576f5b00f1d29d4421c4c0428eee5fa1","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0-rc.3","_npmUser":{"name":"tmpvar","email":"tmpvar@gmail.com"},"dist":{"shasum":"1c351b2f576f5b00f1d29d4421c4c0428eee5fa1","tarball":"https://registry.npmjs.org/browser-filesaver/-/browser-filesaver-1.1.1.tgz","integrity":"sha512-UI4ps3bE/YXvGKlL7BoITvw8bE/SOt7YnvZeCyME7votTLxsDQ0ES0lvQdEWZMvO9aF5/66h+a3PGWn1KOblBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtiEJASFjLtjZDhMj7XCqAkSpJ6wvELClj7IKceIEj/gIgH7zjDk7hiGc7Qa1MNxnCRL5Womlj3zueEf2iOroDVuw="}]},"maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/browser-filesaver-1.1.1.tgz_1459264994492_0.6530140184331685"}}},"readme":"FileSaver.js\n============\n\nFileSaver.js implements the HTML5 W3C `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\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 data, 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\n\n```js\nvar blob = new Blob([\"Hello, world!\"], {type: \"text/plain;charset=utf-8\"});\nsaveAs(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\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\nContributing\n------------\n\nThe `FileSaver.js` distribution file is compiled with Uglify.js like so:\n\n```bash\nuglifyjs FileSaver.js --mangle --comments /@source/ > FileSaver.min.js\n```\n\nPlease make sure you build a production version before submitting a pull request.\n\nBower Installation\n------------------\n\nPlease see the [this repo](http://github.com/Teleborder/FileSaver.js) for a bower-compatible fork of FileSaver.js, available under the package name `file-saver.js`.\n","maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}],"time":{"modified":"2022-06-13T05:09:20.724Z","created":"2014-07-31T03:57:09.248Z","1.0.0":"2014-07-31T03:57:09.248Z","1.1.0":"2015-08-22T02:09:55.044Z","1.1.1":"2016-03-29T15:23:16.952Z"},"homepage":"https://github.com/tmpvar/browser-filesaver","keywords":["file","save","polyfill"],"repository":{"type":"git","url":"git+https://github.com/tmpvar/browser-filesaver.git"},"author":{"name":"Eli Grey"},"bugs":{"url":"https://github.com/tmpvar/browser-filesaver/issues"},"license":"MIT","readmeFilename":"README.md","users":{"princetoad":true,"nkalodimas":true}}