UNPKG

pdf-visual-diff

Version:

Visual Regression Testing for PDFs in JavaScript

72 lines (71 loc) 2.45 kB
{ "name": "pdf-visual-diff", "version": "0.15.2", "description": "Visual Regression Testing for PDFs in JavaScript", "bin": "./lib/cli/index.js", "main": "./lib/index.js", "types": "./lib/index.d.ts", "exports": { ".": "./lib/index.js", "./cli": "./lib/cli/index.js", "./package.json": "./package.json" }, "scripts": { "clean": "rm -rf ./lib ./coverage", "build": "npm run clean && npm run lint && npm run format && npm run test && npm run tsc -- --noEmit false", "build:docs": "npx typedoc src/index.ts --treatWarningsAsErrors", "tsc": "tsc --noEmit --pretty", "tsc:watch": "npm run tsc -- --watch", "lint": "eslint ./src", "lint:fix": "npm run lint -- --fix", "format:other": "prettier --write .eslintrc.js .prettierrc.json tsconfig.json", "format": "prettier ./src --check", "format:fix": "prettier ./src --write", "test": "node --require ts-node/register --test src/**/*.test.ts src/*.test.ts", "test:watch": "node --require ts-node/register --test --watch src/**/*.test.ts src/*.test.ts", "test:jest": "npm run tsc -- --noEmit false && NODE_OPTIONS=--experimental-vm-modules jest test/jest.test.js", "license-checker": "npx license-checker --production --onlyAllow 'MIT; MIT OR X11; BSD; ISC; Apache-2.0; Unlicense' --excludePackages 'pdf-visual-diff'", "update-deps": "npx npm-check-updates --configFileName .ncurc.js" }, "repository": { "type": "git", "url": "git+https://github.com/moshensky/pdf-visual-diff.git" }, "keywords": [ "pdf visual regression testing", "pdf compare", "pdf comparison", "javascript", "visual diff", "typescript", "diff testing", "js" ], "author": "Nikita Moshensky", "license": "MIT", "bugs": { "url": "https://github.com/moshensky/pdf-visual-diff/issues" }, "homepage": "https://github.com/moshensky/pdf-visual-diff#readme", "dependencies": { "@napi-rs/canvas": "^0.1.84", "glob": "^13.0.0", "jimp": "^1.6.0", "pdfjs-dist": "^5.4.449", "yargs": "^18.0.0" }, "devDependencies": { "@eslint/js": "^9.39.2", "@types/glob": "^9.0.0", "@types/node": "^25.0.1", "@types/yargs": "^17.0.35", "eslint": "^9.39.2", "eslint-plugin-tsdoc": "^0.5.0", "jest": "^30.2.0", "prettier": "^3.7.4", "ts-node": "^10.9.2", "typedoc": "^0.28.15", "typescript": "^5.9.3", "typescript-eslint": "^8.49.0" } }