This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
a year ago (0.1.1)
函数列表
unit | 说明 |
---|---|
getImageBase64 | 获取图片的Base64编码 |
Examples
first new a ts file named test.ts
.
import { getImageBase64 } from "jsr:@xtool/image"; console.log(getImageBase64('./test.jpg'));
then run the below command:
$ deno run test.ts
Add Package
deno add jsr:@xtool/image
Import symbol
import * as image from "@xtool/image";
Import directly with a jsr specifier
import * as image from "jsr:@xtool/image";
Add Package
pnpm i jsr:@xtool/image
pnpm dlx jsr add @xtool/image
Import symbol
import * as image from "@xtool/image";
Add Package
yarn add jsr:@xtool/image
yarn dlx jsr add @xtool/image
Import symbol
import * as image from "@xtool/image";
Add Package
vlt install jsr:@xtool/image
Import symbol
import * as image from "@xtool/image";
Add Package
npx jsr add @xtool/image
Import symbol
import * as image from "@xtool/image";
Add Package
bunx jsr add @xtool/image
Import symbol
import * as image from "@xtool/image";