UNPKG

safeer-pdf-generator

Version:

Framework-agnostic PDF generation library with chunking, merging, S3 upload, and email delivery

128 lines (127 loc) 3.62 kB
{ "name": "safeer-pdf-generator", "version": "1.0.21", "description": "Framework-agnostic PDF generation library with chunking, merging, S3 upload, and email delivery", "keywords": [ "pdf", "report", "puppeteer", "s3", "email", "chunking", "merge" ], "author": "safeersoft_com", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/Safeersoft/pdf-reporter.git" }, "homepage": "https://github.com/Safeersoft/pdf-reporter#readme", "bugs": { "url": "https://github.com/Safeersoft/pdf-reporter/issues" }, "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/types/index.d.ts" }, "./package.json": "./package.json" }, "files": [ "dist", "examples", "README.md", "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { "build": "npm run clean && npm run build:types && npm run build:esm && npm run build:cjs", "build:types": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist/types", "build:esm": "tsc --project tsconfig.build.json --module esnext --target es2020 --outDir dist/esm", "build:cjs": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir dist/cjs", "clean": "rm -rf dist", "lint": "eslint src tests --ext .ts --max-warnings 0", "lint:fix": "eslint src tests --ext .ts --fix", "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.{ts,js}\"", "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.{ts,js}\"", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:integration": "cross-env INTEGRATION_TESTS=true jest --testPathPattern=integration", "typecheck": "tsc --noEmit", "prepublishOnly": "npm run typecheck && npm run build", "publish-check": "node scripts/publish-check.mjs" }, "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "dependencies": { "pdf-lib": "^1.17.1", "puppeteer": "^24.15.0" }, "peerDependencies": { "@aws-sdk/client-s3": "^3.0.0", "nodemailer": "^7.0.0" }, "peerDependenciesMeta": { "@aws-sdk/client-s3": { "optional": true }, "nodemailer": { "optional": true } }, "devDependencies": { "@aws-sdk/client-s3": "^3.859.0", "@types/jest": "^29.5.2", "@types/node": "^20.19.9", "@types/nodemailer": "^6.4.17", "@typescript-eslint/eslint-plugin": "^8.39.0", "@typescript-eslint/parser": "^8.39.0", "cross-env": "^7.0.3", "esbuild": "^0.21.0", "eslint": "^8.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "jest": "^29.5.0", "nodemailer": "^7.0.5", "prettier": "^3.0.0", "ts-jest": "^29.1.0", "typescript": "^5.1.3" }, "jest": { "preset": "ts-jest/presets/default-esm", "testEnvironment": "node", "extensionsToTreatAsEsm": [ ".ts" ], "moduleNameMapper": { "^(\\.{1,2}/.*)\\.js$": "$1" }, "collectCoverageFrom": [ "src/**/*.ts", "!src/**/*.d.ts", "!src/index.ts" ], "coverageDirectory": "coverage", "coverageReporters": [ "text", "lcov", "html" ], "testMatch": [ "**/tests/**/*.test.ts" ], "setupFilesAfterEnv": [ "<rootDir>/tests/setup.ts" ] } }