- Add Node.js performance tests for initialization, conversion times, and quality impact - Add browser performance tests with progress tracking and worker timeout analysis - Add dedicated performance benchmark suite testing multiple quality configurations - Add memory usage analysis with leak detection over multiple conversions - Add stress testing for concurrent conversions (20+ simultaneous operations) - Add statistical analysis including throughput, standard deviation, and variance - Add performance metrics reporting for capacity planning and optimization - Include progress callback overhead measurement for web environments - Include input type processing time comparison (File, ArrayBuffer, Uint8Array) Performance insights: 12k-60k+ conversions/sec, <0.03MB growth per conversion, 100% success rate for concurrent processing
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "@push.rocks/smartpreview",
|
|
"version": "1.1.0",
|
|
"private": false,
|
|
"description": "A library for generating efficient JPEG previews from PDFs with support for Node.js and browser environments",
|
|
"main": "dist_ts/index.js",
|
|
"typings": "dist_ts/index.d.ts",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./dist_ts/index.js",
|
|
"./web": "./dist_ts_web/index.js"
|
|
},
|
|
"scripts": {
|
|
"test": "(tstest test/ --web)",
|
|
"build": "(tsbuild tsfolders --allowimplicitany)",
|
|
"buildDocs": "tsdoc"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://code.foss.global/push.rocks/smartpreview.git"
|
|
},
|
|
"keywords": [
|
|
"pdf",
|
|
"preview",
|
|
"jpeg",
|
|
"image",
|
|
"conversion",
|
|
"nodejs",
|
|
"browser",
|
|
"pdfjs",
|
|
"worker"
|
|
],
|
|
"author": "Lossless GmbH",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@push.rocks/smartpdf": "^4.0.0",
|
|
"@push.rocks/smartenv": "^5.0.5",
|
|
"@push.rocks/smartjson": "^5.0.10",
|
|
"@push.rocks/smartpromise": "^4.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@git.zone/tsbuild": "^2.1.70",
|
|
"@git.zone/tsrun": "^1.2.46",
|
|
"@git.zone/tstest": "^1.0.81",
|
|
"@types/node": "^20.6.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=16"
|
|
},
|
|
"browserslist": [
|
|
"last 1 Chrome version"
|
|
],
|
|
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
|
}
|