Save As Functionality In JavaScript – tiny-save-as

Category: Javascript | January 2, 2021
Authorkeqingrong
Last UpdateJanuary 2, 2021
LicenseMIT
Tags
Views2,044 views
Save As Functionality In JavaScript – tiny-save-as

A tiny JavaScript library that provides the Save As functionality on the webpage.

How to use it:

Import the tiny-save-as into the document.

<script src="//unpkg.com/tiny-save-as">

Pass the blob data as the first parameter to the saveAs function.

saveAs(blob);

Customize the file name.

saveAs(blob, fileName);

Changelog:

2021-01-02

  • v1.0.2

10/31/2018

  • Add check for URL API

You Might Be Interested In:


Leave a Reply