npm i save 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: npm install in dev mode
npm install packageName --save-dev
Example 3: install dependencies npm
npm install
Example 4: npm install and add to dependancies
npm i packageName -save
Example 5: file-saver npm
import { saveAs } from 'file-saver';
Example 6: file-saver npm
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBom })