UNPKG

@bashbers/astro-image-dithering

Version:

Astro image dithering plugin - converts png's in project to dithered.pngs and uses them inside markdown files.

68 lines (67 loc) 1.76 kB
{ "name": "@bashbers/astro-image-dithering", "version": "1.2.3", "description": "Astro image dithering plugin - converts png's in project to dithered.pngs and uses them inside markdown files.", "scripts": { "start-astro": "astro --root demo dev", "build-astro": "astro --root demo build", "serve-astro": "astro --root demo preview", "build": "npm run clean && npx tsc -p tsconfig.json && cp ./packages/dither-images/dither-image-toggle.css ./dist", "clean": "del-cli ./dist", "prepack": "npm run build" }, "type": "module", "author": "https://github.com/bashbers/", "license": "GPL-3.0", "dependencies": { "optipng": "^4.2.0", "pngjs": "^7.0.0", "zlib": "^1.0.5" }, "devDependencies": { "@types/hast": "^3.0.4", "@types/node": "^22.15.3", "@types/pngjs": "^6.0.5", "@types/unist": "^3.0.3", "astro": "^5.7.10", "del-cli": "^6.0.0", "ts-node": "^10.9.2", "typescript": "^5.8.3" }, "workspaces": [ "demo", "packages/**/*" ], "files": [ "packages/dither-images", "dist", "!*.png" ], "exports": { ".": { "import": "./dist/index.js" }, "./dist/dither-image-toggle.css": "./dist/dither-image-toggle.css", "./dist/dithered-image-container.js": "./dist/dithered-image-container.js" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "repository": { "type": "git", "url": "https://github.com/bashbers/dithering.git" }, "keywords": [ "dithering", "dither", "astro", "withastro", "media", "image", "perf", "optimization" ], "bugs": { "url": "https://github.com/bashbers/dithering/issues" }, "homepage": "https://github.com/bashbers/dithering#readme" }