UNPKG

satori

Version:

Enlightened library to convert HTML and CSS to SVG.

149 lines (148 loc) 4.36 kB
{ "name": "satori", "version": "0.26.0", "description": "Enlightened library to convert HTML and CSS to SVG.", "module": "./dist/index.js", "main": "./dist/index.js", "types": "./dist/index.d.ts", "typesVersions": { "*": { "wasm": [ "./dist/index.d.ts" ] } }, "type": "module", "license": "MPL-2.0", "files": [ "dist/**", "yoga.wasm" ], "imports": { "#satori/jsx/jsx-runtime": "./src/jsx/jsx-runtime.ts", "#satori/jsx/jsx-dev-runtime": "./src/jsx/jsx-runtime.ts" }, "exports": { "./package.json": "./package.json", "./yoga.wasm": "./yoga.wasm", ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./standalone": { "import": { "types": "./dist/standalone.d.ts", "default": "./dist/standalone.js" }, "require": { "types": "./dist/standalone.d.cts", "default": "./dist/standalone.cjs" } }, "./jsx": { "types": "./dist/jsx/index.d.ts", "import": "./dist/jsx/index.js", "require": "./dist/jsx/index.cjs" }, "./jsx/jsx-runtime": { "types": "./dist/jsx/jsx-runtime.d.ts", "import": "./dist/jsx/jsx-runtime.js", "require": "./dist/jsx/jsx-runtime.cjs" }, "./jsx/jsx-dev-runtime": { "types": "./dist/jsx/jsx-runtime.d.ts", "import": "./dist/jsx/jsx-runtime.js", "require": "./dist/jsx/jsx-runtime.cjs" } }, "scripts": { "prepare": "husky install", "dev": "pnpm run dev:default", "dev:default": "NODE_ENV=development tsup src/index.ts --watch --ignore-watch playground", "dev:playground": "turbo dev --filter=satori-playground...", "build": "pnpm run build:default && pnpm run build:standalone", "build:default": "NODE_ENV=production tsup", "build:standalone": "NODE_ENV=production SATORI_STANDALONE=1 tsup", "test": "NODE_ENV=test vitest run", "test:ui": "NODE_ENV=test vitest --ui --coverage.enabled", "test-type": "tsc -p tsconfig.json --noEmit && tsc -p playground/tsconfig.json --noEmit", "dev:test": "NODE_ENV=test vitest --update", "lint": "eslint . --ext .js,.jsx,.ts,.tsx --quiet --cache", "lint:fix": "pnpm lint --fix", "prettier-check": "prettier --check .", "prettier-fix": "prettier --write --list-different . --cache", "ci-check": "concurrently \"pnpm prettier-check\" \"pnpm test-type\" \"pnpm lint\"", "benchmark": "node --experimental-strip-types test/benchmark/index.ts" }, "lint-staged": { "*.{ts,tsx}": [ "eslint --fix --cache", "prettier --write --cache" ] }, "repository": { "type": "git", "url": "git+https://github.com/vercel/satori.git" }, "keywords": [ "HTML", "JSX", "SVG", "converter", "renderer" ], "author": "Shu Ding <g@shud.in>", "bugs": { "url": "https://github.com/vercel/satori/issues" }, "homepage": "https://github.com/vercel/satori#readme", "devDependencies": { "@resvg/resvg-js": "^2.1.0", "@types/node": "^16", "@types/opentype.js": "^1.3.3", "@types/react": "^17.0.38", "@typescript-eslint/eslint-plugin": "^5.40.0", "@typescript-eslint/parser": "^5.40.0", "@vitest/coverage-v8": "^0.32.0", "@vitest/ui": "^0.32.0", "concurrently": "^7.3.0", "esbuild-plugin-replace": "^1.2.0", "eslint": "^8.25.0", "eslint-plugin-react": "^7.31.10", "eslint-plugin-react-hooks": "^4.6.0", "husky": "8.0.3", "jest-image-snapshot": "^6.1.0", "lint-staged": "13.1.0", "mitata": "^1.0.34", "prettier": "^2.7.1", "react": "^17.0.2", "sharp": "^0.34.3", "tsup": "^7.1.0", "turbo": "^1.6.3", "twrnc": "^3.4.0", "typescript": "^5", "vitest": "^0.32.0" }, "dependencies": { "@shuding/opentype.js": "1.4.0-beta.0", "css-background-parser": "^0.1.0", "css-box-shadow": "1.0.0-3", "css-gradient-parser": "^0.0.17", "css-to-react-native": "^3.0.0", "emoji-regex-xs": "^2.0.1", "escape-html": "^1.0.3", "linebreak": "^1.1.0", "parse-css-color": "^0.2.1", "postcss-value-parser": "^4.2.0", "yoga-layout": "^3.2.1" }, "packageManager": "pnpm@8.7.0", "engines": { "node": ">=16" }, "pnpm": { "patchedDependencies": { "yoga-layout@3.2.1": "patches/yoga-layout@3.2.1.patch" } } }