
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A tiny ~.5kb tool to save stuff. It opens a saveAs like dialog on browser.
yarn add xave
npm install xave
The xave function accepts 2 arguments. First argument is an url string, Blob or Blob URI, second one is the "name.extension"
string of the file 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")
const save = require("xave")
//PDF
const blob = new Blob(["someencodedcontent"], { type: "application/pdf" })
save(blob, "report.pdf")
//images
const image = new Blob(["someencodedcontent"], { type: "image/png" })
save(image, "image.png")
//Canvas
const canvas = window.canvas
const ctx = canvas.getContext("2d")
ctx.fillStyle = "red"
ctx.beginPath()
ctx.arc(15, 15, 15, 0, Math.PI * 2, true)
ctx.closePath()
ctx.fill()
const url = canvas.toDataURL()
save(url)
<script src="https://d3portillo.github.io/xave/src/index.min.js"></script>
FAQs
📦 Tiny tool to save stuff similar to the saveAs dialog
The npm package xave receives a total of 0 weekly downloads. As such, xave popularity was classified as not popular.
We found that xave demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.