Recently i working working on angular meteor application. I needed to create a file on front end of the application.
For this purpose we do have Javacript file saver library
But to include and use this library in angular meteor application i need to create a meteor version of this. This package works across the browsers.
to include this package in to your project simply run
meteor add morwal89:angular-meteor-filesaver
A smart package that provides filesaver.js to the angular Meteor client. Currently using version marked ‘2015-03-04’.
FileSaver.js implements the HTML5 W3C saveAs() [FileSaver] interface in browsers that do not natively support it. There is a [FileSaver.js demo] that demonstrates saving various media types.
FileSaver.js is the solution to saving files on the client-side, and is perfect for webapps that need to generate files, or for saving sensitive information that shouldn’t be sent to an external server.
Find source code for this package here.
Latest posts by Shankar Morwal (see all)
- Upgrade node.js version in ubuntu 14 or ubuntu 16 - May 8, 2017
- Angular 4 will be out soon, Everything you need to know - February 20, 2017
- Installing teamcity 10.0.4 on ubuntu server - January 17, 2017