UNPKG

@altano/satori-fit-text

Version:
92 lines 2.82 kB
{ "name": "@altano/satori-fit-text", "version": "2.0.2", "description": "Fit text to a bounding box in Node or the browser", "keywords": [ "fit-text", "opengraph", "satori", "typography" ], "homepage": "https://github.com/altano/npm-packages/tree/main/packages/satori-fit-text", "repository": { "type": "git", "url": "https://github.com/altano/npm-packages", "directory": "packages/satori-fit-text" }, "license": "ISC", "author": { "name": "Alan Norbauer", "email": "altano@gmail.com", "url": "https://alan.norbauer.com" }, "sideEffects": false, "type": "module", "exports": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "assets/", "dist/**/*.js", "dist/**/*.js.map", "dist/**/*.d.ts" ], "dependencies": { "@svgdotjs/svg.js": "^3.2.5", "debug": "^4.4.3", "satori": "^0.12.2", "svgdom": "^0.1.23" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.2", "@fontsource-variable/inter": "5.2.6", "@fontsource/inter": "5.2.6", "@playwright/test": "1.58.2", "@resvg/resvg-js": "^2.6.2", "@types/debug": "^4.1.12", "@types/he": "^1.2.3", "@types/jest-image-snapshot": "^6.4.1", "@types/node": "^25.5.0", "@types/react": "^19.2.10", "@types/react-dom": "^19.2.3", "@types/svgdom": "^0.1.2", "@vitest/coverage-v8": "^4.1.0", "depcheck": "^1.4.7", "jest-image-snapshot": "^6.5.1", "prettier": "^3.8.1", "react": "^19.2.4", "tsdown": "^0.21.4", "typescript": "^5.9.3", "vite": "^7.3.1", "vitest": "^4.1.0", "@altano/assets": "0.0.1", "@altano/build-config": "0.0.1", "@altano/testing": "0.0.1", "@altano/tsconfig": "0.0.1" }, "peerDependencies": { "@types/react": "19.x.x" }, "publishConfig": { "access": "public" }, "scripts": { "build": "tsdown --config-loader unrun --config ../build-config/tsdown.config.node.ts", "check:exports": "attw --pack . --profile esm-only --quiet", "check:types:src": "tsc --noEmit", "check:types:test": "tsc --noEmit --project ./tests/tsconfig.json", "check:unused-dependencies": "depcheck", "clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist", "dev": "pnpm run build --watch", "format": "prettier --check src", "format:fix": "prettier --write src", "lint": "eslint", "lint:fix": "TIMING=1 pnpm lint --fix", "lint:timing": "TIMING=1 pnpm lint", "test:e2e": "NODE_OPTIONS='--no-experimental-strip-types' playwright test", "test:e2e:server": "pnpm --dir ../../examples/satori-fit-text-playground start", "test:e2e:ui": "playwright test --ui", "test:unit": "vitest --run", "test:unit:benchmark": "vitest --run bench", "test:unit:watch": "vitest" } }