npm i --save means code example
Example 1: file-saver npm
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});FileSaver.saveAs(blob, "hello world.txt");
Example 2: file-saver npm
# Additional typescript definitions npm install @types/file-saver --save-dev