npm i file-saver code example
Example 1: file-saver npm
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBom })
Example 2: file-saver npm
# Additional typescript definitions npm install @types/file-saver --save-dev