@sarthak61199/react-smart-image
Version:
Smart, responsive React image component with BlurHash/LQIP placeholders and CDN-friendly srcset/sizes.
65 lines (64 loc) • 1.58 kB
JSON
{
"name": "@sarthak61199/react-smart-image",
"author": "Sarthak Agarwal",
"license": "MIT",
"version": "0.1.3",
"description": "Smart, responsive React image component with BlurHash/LQIP placeholders and CDN-friendly srcset/sizes.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/sarthak61199/react-smart-image.git"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"prepublishOnly": "npm run build",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:watch": "vitest --watch"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"dependencies": {
"blurhash": "^2.0.5"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.1.9",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"jsdom": "^26.1.0",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"keywords": [
"react",
"react-component",
"image",
"responsive-images",
"srcset",
"sizes",
"blurhash",
"lqip",
"placeholder",
"cdn",
"lazy-loading"
]
}