UNPKG

@tomatrow/pdf-to-png-converter

Version:

Node.js utility to convert PDF file/buffer pages to PNG files/buffers with no native dependencies.

61 lines (60 loc) 1.97 kB
{ "name": "@tomatrow/pdf-to-png-converter", "version": "3.5.2", "description": "Node.js utility to convert PDF file/buffer pages to PNG files/buffers with no native dependencies.", "keywords": [ "pdf", "pdf to png", "pdf to image", "pdf file to image", "pdf buffer to image" ], "homepage": "https://github.com/dichovsky/pdf-to-png-converter#readme", "bugs": { "url": "https://github.com/dichovsky/pdf-to-png-converter/issues" }, "repository": { "type": "git", "url": "git+https://github.com/dichovsky/pdf-to-png-converter.git" }, "license": "MIT", "author": "Igor Magdich <magdich.igor@gmail.com>", "main": "out/index.js", "types": "out/index.d.ts", "files": [ "/out" ], "scripts": { "prebuild": "npm run clean", "build": "tsc --pretty --project tsconfig.prod.json", "build:test": "tsc --pretty --noEmit --project tsconfig.json", "clean": "rimraf ./out ./coverage ./test-results", "docker:build": "docker build --compress -t test-pdf-to-png-converter .", "predocker:run": "npm run clean", "docker:run": "docker run --rm -it -v $PWD/test-results:/usr/pkg/test-results test-pdf-to-png-converter", "docker:test": "vitest run", "license-checker": "npx license-checker --production --onlyAllow 'MIT; MIT OR X11; BSD; ISC; Apache-2.0; Unlicense'", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "pretest": "npm run clean", "test": "vitest run --coverage", "test:docker": "npm run docker:build && npm run docker:run" }, "devDependencies": { "@types/node": "^22.7.8", "@typescript-eslint/eslint-plugin": "^8.11.0", "@typescript-eslint/parser": "^8.11.0", "@vitest/coverage-v8": "^2.1.3", "eslint": "^9.13.0", "png-visual-compare": "^2.1.0", "rimraf": "^6.0.1", "typescript": "^5.6.3", "vitest": "^2.1.3" }, "engines": { "node": ">=18.0.0" }, "dependencies": { "pdfjs-dist": "4.7.76" } }