@awesome-compressor/browser-compress-image
Version:
🚀 A powerful, lightweight browser image compression library with TypeScript support. Compress JPEG, PNG, GIF images with multiple output formats (Blob, File, Base64, ArrayBuffer) and zero dependencies.
88 lines (87 loc) • 2.46 kB
JSON
{
"name": "@awesome-compressor/browser-compress-image",
"type": "module",
"version": "0.0.3",
"packageManager": "pnpm@10.13.1",
"description": "🚀 A powerful, lightweight browser image compression library with TypeScript support. Compress JPEG, PNG, GIF images with multiple output formats (Blob, File, Base64, ArrayBuffer) and zero dependencies.",
"author": {
"name": "Simon He",
"email": "simon.he.dev@gmail.com",
"url": "https://github.com/Simon-He95"
},
"license": "MIT",
"homepage": "https://github.com/awesome-compressor/browser-compress-image#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/awesome-compressor/browser-compress-image.git"
},
"bugs": {
"url": "https://github.com/awesome-compressor/browser-compress-image/issues"
},
"keywords": [
"image-compression",
"browser",
"compress",
"optimization",
"typescript",
"jpeg",
"png",
"gif",
"webp",
"file-size-reduction",
"frontend",
"web-performance",
"image-optimization",
"base64",
"arraybuffer",
"blob",
"file-processing",
"zero-dependencies",
"lightweight",
"modern"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsdown",
"play": "pnpm run -C playground dev",
"dev": "pnpm run -C playground dev",
"play:build": "pnpm run -C playground build",
"lint": "prettier --cache --write .",
"test": "vitest --dir test -u",
"ptest": "pnpm run -C playground test -u",
"preview": "pnpm run -C playground preview",
"test:e2e": "cypress open",
"typecheck": "tsc --noEmit",
"prepublishOnly": "nr build",
"release": "bumpp --commit --tag --push && git push origin --tags -f && npm publish"
},
"dependencies": {
"browser-image-compression": "^2.0.2",
"compressorjs": "^1.2.1",
"gifsicle-wasm-browser": "^1.5.16"
},
"devDependencies": {
"@antfu/eslint-config": "^4.16.2",
"@sxzz/prettier-config": "^2.2.3",
"@types/node": "^17.0.45",
"bumpp": "^7.2.0",
"eslint": "^9.31.0",
"prettier": "^3.6.2",
"tsdown": "^0.12.9",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"prettier": "@sxzz/prettier-config"
}