@altano/satori-fit-text
Version:
Fit text to a bounding box in Node or the browser
88 lines • 2.71 kB
JSON
{
"name": "@altano/satori-fit-text",
"version": "1.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/**/*.d.ts"
],
"dependencies": {
"@svgdotjs/svg.js": "^3.2.4",
"debug": "^4.4.0",
"satori": "^0.12.2",
"svgdom": "^0.1.21"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@fontsource-variable/inter": "^5.2.5",
"@fontsource/inter": "^5.2.5",
"@playwright/test": "1.47.0",
"@resvg/resvg-js": "^2.6.2",
"@types/debug": "^4.1.12",
"@types/he": "^1.2.3",
"@types/jest-image-snapshot": "^6.4.0",
"@types/node": "^22.13.10",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4",
"@types/svgdom": "^0.1.2",
"@vitest/coverage-v8": "^3.1.1",
"depcheck": "^1.4.7",
"jest-image-snapshot": "^6.4.0",
"prettier": "^3.5.3",
"react": "^19.1.0",
"typescript": "^5.8.2",
"vite": "^6.2.5",
"vitest": "^3.1.1",
"@altano/assets": "0.0.0",
"@altano/build-config": "0.0.0",
"@altano/testing": "0.0.0",
"@altano/tsconfig": "0.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup --config build-config/tsup.config.node.ts",
"build:types": "tsc --project tsconfig.declarations.json",
"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": "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"
}
}