93 lines
3.5 KiB
JSON
93 lines
3.5 KiB
JSON
{
|
|
"name": "pdfmake",
|
|
"version": "0.3.11",
|
|
"description": "Client/server side PDF printing in pure JavaScript",
|
|
"main": "js/index.js",
|
|
"esnext": "src/index.js",
|
|
"browser": "build/pdfmake.js",
|
|
"directories": {
|
|
"test": "tests"
|
|
},
|
|
"dependencies": {
|
|
"linebreak": "^1.1.0",
|
|
"pdfkit": "^0.19.1",
|
|
"xmldoc": "^2.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.29.7",
|
|
"@babel/core": "^7.29.7",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.29.7",
|
|
"@babel/preset-env": "^7.29.7",
|
|
"@eslint/js": "^10.0.1",
|
|
"assert": "^2.1.0",
|
|
"babel-loader": "^10.1.1",
|
|
"brfs": "^2.0.2",
|
|
"browserify-zlib": "^0.2.0",
|
|
"buffer": "^6.0.3",
|
|
"core-js": "^3.49.0",
|
|
"eslint": "^10.4.1",
|
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
"expose-loader": "^5.0.1",
|
|
"file-saver": "^2.0.5",
|
|
"globals": "^17.6.0",
|
|
"mocha": "^11.7.6",
|
|
"npm-run-all": "^4.1.5",
|
|
"process": "^0.11.10",
|
|
"rewire": "^9.0.1",
|
|
"shx": "^0.4.0",
|
|
"sinon": "^22.0.0",
|
|
"source-map-loader": "^5.0.0",
|
|
"stream-browserify": "^3.0.0",
|
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
"svg-to-pdfkit": "github:alafr/SVG-to-PDFKit#b091ebd4e7b7d2310eb1003511cd5de480f7e0e1",
|
|
"terser-webpack-plugin": "^5.6.1",
|
|
"transform-loader": "^0.2.4",
|
|
"util": "^0.12.5",
|
|
"webpack": "^5.107.2",
|
|
"webpack-cli": "^7.0.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"test": "run-s build mocha lint",
|
|
"build": "run-s build:clean build:node build:browser build:standard-fonts build:fonts build:vfs",
|
|
"build:clean": "shx rm -rf js build",
|
|
"build:3rdparty": "shx cp node_modules/svg-to-pdfkit/source.js src/3rd-party/svg-to-pdfkit/source.js && shx cp node_modules/svg-to-pdfkit/LICENSE src/3rd-party/svg-to-pdfkit/LICENSE && git apply src/3rd-party/svg-to-pdfkit/0001-fix-contains.patch",
|
|
"build:node": "babel src --out-dir js",
|
|
"build:browser": "webpack",
|
|
"build:vfs": "node build-vfs.js \"./fonts/Roboto\"",
|
|
"build:examples": "node build-examples.js",
|
|
"build:standard-fonts": "shx mkdir -p build/standard-fonts && brfs \"./src/browser-extensions/standard-fonts/Courier.js\" > build/standard-fonts/Courier.js && brfs \"./src/browser-extensions/standard-fonts/Helvetica.js\" > build/standard-fonts/Helvetica.js && brfs \"./src/browser-extensions/standard-fonts/Times.js\" > build/standard-fonts/Times.js && brfs \"./src/browser-extensions/standard-fonts/Symbol.js\" > build/standard-fonts/Symbol.js && brfs \"./src/browser-extensions/standard-fonts/ZapfDingbats.js\" > build/standard-fonts/ZapfDingbats.js",
|
|
"build:fonts": "shx mkdir -p build/fonts && shx mkdir -p build/fonts/Roboto && shx cp -r fonts/Roboto/*.* build/fonts/Roboto && brfs \"./src/browser-extensions/fonts/Roboto.js\" > build/fonts/Roboto.js",
|
|
"lint": "eslint \"./src/**/*.js\" \"./tests/**/*.js\" \"./examples/**/*.js\" \"./standard-fonts/**/*.js\" \"./fonts/**/*.js\"",
|
|
"mocha": "mocha --reporter spec \"./tests/**/*.spec.js\"",
|
|
"playground": "node dev-playground/server.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/bpampuch/pdfmake.git"
|
|
},
|
|
"keywords": [
|
|
"pdf",
|
|
"javascript",
|
|
"printing",
|
|
"layout"
|
|
],
|
|
"author": "Bartek Pampuch <bartosz.pampuch@gmail.com>",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/bpampuch/pdfmake/issues"
|
|
},
|
|
"homepage": "http://pdfmake.org",
|
|
"config": {
|
|
"blanket": {
|
|
"pattern": "src",
|
|
"data-cover-never": [
|
|
"node_modules",
|
|
"tests"
|
|
]
|
|
}
|
|
}
|
|
}
|