0.2.4 • Published 8 months ago

blob-to-url v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

blob-to-url

  • Support for ESM/CJS.
  • Capable of generating a blob url.
  • Capable of generating a data uri.

Preview

  • toBlobURL(_blob: File | Blob): { url: string, revoke: () => void } : Make a Blob URL out of a Blob or File object.
  • toDataURI(_blob: File | Blob): string : Converts a Blob or a File object to a base64 encoded URL.

Usage

import { toBlobURL } from "blob-to-url";
import { toDataURI } from "blob-to-url";

const { toBlobURL } = require("blob-to-url");
const { toDataURI } = require("blob-to-url");

const _blobUrl = toBlobURL(_blob);
console.log(_blobUrl.url); // converted blob url.
_blobUrl.revoke(); // Revoke blob url.

const _dataURI = toDataURI(_blob);
console.log(_dataURI); // translated base64-encoded Blob|File object.

Task List

  • Add Vitest based test code.
  • Add GitHub Actions based CI/CD environment. (To make an automated publish system)
0.2.1

8 months ago

0.2.0

8 months ago

0.2.3

8 months ago

0.2.2

8 months ago

0.2.4

8 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.15

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago