default-avatar
Version:
A customizable React component to generate default avatars with initials and themed colors.
51 lines (50 loc) • 1.57 kB
JSON
{
"name": "default-avatar",
"version": "1.0.0",
"description": "A customizable React component to generate default avatars with initials and themed colors.",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/types/index.d.ts",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && esbuild src/index.tsx --bundle --sourcemap --minify --format=esm --outfile=dist/index.js && esbuild src/index.tsx --bundle --minify --format=cjs --outfile=dist/index.cjs",
"dev": "esbuild src/index.tsx --bundle --sourcemap --format=esm --outfile=dist/index.js --watch",
"dev:example": "esbuild example/main.tsx --bundle --outfile=example/bundle.js --format=esm --sourcemap --jsx=automatic --watch",
"test": "vitest"
},
"keywords": [
"avatar",
"default-avatar",
"react",
"component",
"profile-picture",
"placeholder"
],
"author": "Vinay Garg",
"license": "MIT",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.19",
"@vitest/coverage-v8": "^3.2.4",
"esbuild": "^0.25.5",
"jsdom": "^26.1.0",
"live-server": "^1.2.2",
"typescript": "^5.4.5",
"vitest": "^3.2.4"
},
"dependencies": {
"@vitejs/plugin-react": "^4.6.0"
}
}