@neosjs/html-to-pdf
Version:
将html转换为pdf,支持中文,支持图片,支持表格,支持分页,支持水印,支持自定义页眉页脚,支持页码. 解决分页截断问题.
78 lines (77 loc) • 1.84 kB
JSON
{
"name": "@neosjs/html-to-pdf",
"type": "module",
"version": "1.2.0",
"packageManager": "pnpm@10.8.0",
"description": "将html转换为pdf,支持中文,支持图片,支持表格,支持分页,支持水印,支持自定义页眉页脚,支持页码. 解决分页截断问题.",
"author": "听着情歌流泪",
"license": "MIT",
"keywords": [
"neosjs",
"html-to-pdf",
"pdf",
"pdf-generate",
"pdf-convert"
],
"sideEffects": false,
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=22",
"pnpm": ">=10.7.1"
},
"scripts": {
"build": "tsdown",
"dev": "tsdown -w --minify=false",
"lint": "eslint . --ignore-pattern .gitignore",
"lint:fix": "eslint . --fix --ignore-pattern .gitignore",
"preinstall": "npx only-allow pnpm",
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"prepare": "simple-git-hooks"
},
"peerDependencies": {
"html2canvas": "^1.4.1",
"jspdf": "^3.0.1"
},
"peerDependenciesMeta": {
"html2canvas": {
"peer": true
},
"jspdf": {
"peer": true
}
},
"dependencies": {
"html2canvas": "^1.4.1",
"jspdf": "^3.0.1"
},
"devDependencies": {
"@neosjs/eslint-config": "^1.3.2",
"@types/node": "^24.1.0",
"eslint": "^9.32.0",
"eslint-plugin-format": "^1.0.1",
"lint-staged": "^16.1.2",
"simple-git-hooks": "^2.13.0",
"tsdown": "^0.13.0",
"typescript": "^5.8.3"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}