Skip to main content

@mel/core@0.1.2

latest

core utilities

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
8 months ago (0.1.2)
function download
download(
content: string,
filename: string,
mimeType?: string,
): void

Generate client download, hacky workaround.

Parameters

content: string

The content, for now this is mainly used for JSON

filename: string

The initial name of the file

optional
mimeType: string = application/octet-stream

The mimetype of the file (optional)

Return Type

void

Add Package

deno add jsr:@mel/core

Import symbol

import { download } from "@mel/core";

---- OR ----

Import directly with a jsr specifier

import { download } from "jsr:@mel/core";

Add Package

npx jsr add @mel/core

Import symbol

import { download } from "@mel/core";

Add Package

yarn dlx jsr add @mel/core

Import symbol

import { download } from "@mel/core";

Add Package

pnpm dlx jsr add @mel/core

Import symbol

import { download } from "@mel/core";

Add Package

bunx jsr add @mel/core

Import symbol

import { download } from "@mel/core";