Gathering detailed insights and metrics for cf-angular-file-saver
Gathering detailed insights and metrics for cf-angular-file-saver
Gathering detailed insights and metrics for cf-angular-file-saver
Gathering detailed insights and metrics for cf-angular-file-saver
An AngularJS service that provides cross-browser compatibility of HTML5 saveAs() - http://alferov.github.io/angular-file-saver
npm install cf-angular-file-saver
Typescript
Module System
Min. Node Version
Node Version
NPM Version
77
Supply Chain
97.4
Quality
74.4
Maintenance
100
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
211 Stars
153 Commits
105 Forks
14 Watchers
2 Branches
4 Contributors
Updated on Mar 29, 2025
Latest Version
1.0.1
Package Id
cf-angular-file-saver@1.0.1
Size
345.77 kB
NPM Version
2.11.3
Node Version
0.12.7
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
32
Angular File Saver is an AngularJS service that leverages FileSaver.js and Blob.js to implement the HTML5 W3C saveAs() interface in browsers that do not natively support it
File dist/angular-file-saver.bundle.js
contains all required dependencies and
grants access to both Blob.js
and FileSaver.js
polyfills via Blob
and
SaveAs
services.
1# Using bower: 2$ bower install angular-file-saver 3 4# Using npm: 5$ npm install angular-file-saver
ngFileSaver
module into your project;FileSaver
and Blob
services as dependencies;new Blob(['text'], { type: 'text/plain;charset=utf-8' })
;FileSaver.saveAs
with the following arguments:
data
Blob: a Blob instance;filename
String: Custom filename (extension is optional);disableAutoBOM
Boolean: (optional) Disable automatically provided Unicode text encoding hints;FileSaver
#saveAs(data, filename[, disableAutoBOM])
Immediately starts saving a file
data
: a Blob instance;filename
: Custom filename (extension is optional);disableAutoBOM
: (optional) Disable automatically provided Unicode text encoding hints;Blob(blobParts[, options]))
An Angular factory that returns a Blob instance. Blob API on MDN
SaveAs(data, filename[, disableAutoBOM])
An Angular factory that returns a FileSaver.js saveAs
polyfill.
FileSaver.js documentation
JS
1function ExampleCtrl(FileSaver, Blob) { 2 var vm = this; 3 4 vm.val = { 5 text: 'Hey ho lets go!' 6 }; 7 8 vm.download = function(text) { 9 var data = new Blob([text], { type: 'text/plain;charset=utf-8' }); 10 FileSaver.saveAs(data, 'text.txt'); 11 }; 12} 13 14angular 15 .module('fileSaverExample', ['ngFileSaver']) 16 .controller('ExampleCtrl', ['FileSaver', 'Blob', ExampleCtrl]);
HTML
1<div class="wrapper" ng-controller="ExampleCtrl as vm"> 2 <textarea 3 ng-model="vm.val.text" 4 name="textarea" rows="5" cols="20"> 5 Hey ho let's go! 6 </textarea> 7 <a href="" class="btn btn-dark btn-small" ng-click="vm.download(vm.val.text)"> 8 Download 9 </a> 10</div>
MIT © Philipp Alferov
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More