HTML5 SaveAs Helper

Example

yarn add xave
npm install xave

Usage

A tiny ~.5kb function you can execute to save stuff. The xave function accepts 2 arguments, first is an url string, Blob or Blob URI and second is the name .extension of content you want to save.

xave(Blob|URL|URI, "name.extension")

import save from "xave"
// Or
const save = require("xave")

const blob = new Blob(["xd"], { type: "text/plain" })
save(blob, "text.txt")

CDN

<script src="https://d3portillo.github.io/xave/src/index.min.js"></script>