Home  »  CodeLibrariesSnippetsTechnologyTools   »   FileSaver.js CDN URL Example

FileSaver.js CDN URL Example

Posted: December 17, 2022 | by Michael Bright

This is the FileSaver.js CDN URL.

https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js

This is how to use FileSaver.js with CDN.

<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js" integrity="sha512-csNcFYJniKjJxRWRV1R7fvnXrycHP6qDR21mgz1ZP55xY5d+aHLfo9/FcGDQLfn2IfngbAHd8LdfsagcCqgTcQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Using jsdelivr.

https://cdn.jsdelivr.net/npm/[email protected]/FileSaver.min.js

Here is the HTML code.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/FileSaver.min.js"></script>

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.