{ "version": "4.2.1", "type": "module", "name": "swissqrbill", "description": "Swiss QR Bill generation in Node.js and browsers", "license": "MIT", "author": "Roger Schönbächler", "homepage": "https://github.com/schoero/swissqrbill#readme", "repository": { "type": "git", "url": "git+https://github.com/schoero/swissqrbill.git" }, "bugs": { "url": "https://github.com/schoero/swissqrbill/issues" }, "sideEffects": false, "exports": { "./errors": { "require": { "types": "./lib/cjs/shared/errors.d.ts", "require": "./lib/cjs/shared/errors.cjs" }, "import": "./lib/esm/shared/errors.js" }, "./pdf": { "require": { "types": "./lib/cjs/pdf/index.d.ts", "require": "./lib/cjs/pdf/index.cjs" }, "import": "./lib/esm/pdf/index.js" }, "./svg": { "require": { "types": "./lib/cjs/svg/index.d.ts", "require": "./lib/cjs/svg/index.cjs" }, "import": "./lib/esm/svg/index.js" }, "./types": { "require": { "types": "./lib/cjs/shared/types.d.ts", "require": "./lib/cjs/shared/types.cjs" }, "import": "./lib/esm/shared/types.js" }, "./utils": { "require": { "types": "./lib/cjs/shared/utils.d.ts", "require": "./lib/cjs/shared/utils.cjs" }, "import": "./lib/esm/shared/utils.js" } }, "scripts": { "build": "npm run build:bundle && npm run build:cjs && npm run build:esm", "build:bundle": "vite build --config vite.config.bundle.ts", "build:cjs": "vite build --config vite.config.cjs.ts && node --experimental-strip-types scripts/cjs.ts", "build:esm": "vite build --config vite.config.ts && node --experimental-strip-types scripts/esm.ts", "clean": "rm -r ./pdf && rm -r ./svg && rm -r ./errors && rm -r ./types && rm -r ./utils", "docs": "npm run docs:pdf && npm run docs:svg && npm run docs:utils && npm run docs:errors && npm run docs:bundle", "docs:bundle": "unwritten src/bundle/index.ts -t tsconfig.docs.json -o docs/bundle/ ", "docs:errors": "unwritten src/shared/errors.ts -t tsconfig.docs.json -o docs/errors/", "docs:pdf": "unwritten src/pdf/index.ts src/shared/types.ts -t tsconfig.docs.json -o docs/pdf/", "docs:svg": "unwritten src/svg/index.ts src/shared/types.ts -t tsconfig.docs.json -o docs/svg/", "docs:utils": "unwritten src/shared/utils.ts -t tsconfig.docs.json -o docs/utils/", "eslint": "eslint .", "eslint:ci": "npm run eslint -- --max-warnings 0", "eslint:fix": "npm run eslint -- --fix", "lint": "npm run eslint && npm run markdownlint", "lint:ci": "npm run eslint:ci && npm run markdownlint:ci", "lint:fix": "npm run eslint:fix && npm run markdownlint:fix", "markdownlint": "markdownlint-cli2 '**/*.md' '#node_modules'", "markdownlint:ci": "npm run markdownlint", "markdownlint:fix": "npm run markdownlint -- --fix", "postbuild": "node --experimental-strip-types scripts/node10.ts", "postpublish": "npm run clean", "postrelease:alpha": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "postrelease:beta": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "postrelease:latest": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "prebuild": "npm run typecheck && npm run lint && npm run spellcheck", "prerelease:alpha": "npm run test -- --run && npm run build", "prerelease:beta": "npm run test -- --run && npm run build", "prerelease:latest": "npm run test -- --run && npm run build", "publish:alpha": "changelogen gh release && changelogen --publish --publishTag alpha", "publish:beta": "changelogen gh release && changelogen --publish --publishTag beta", "publish:latest": "changelogen gh release && changelogen --publish", "release:alpha": "changelogen --bump --output --prerelease alpha", "release:beta": "changelogen --bump --output --prerelease beta", "release:latest": "changelogen --bump --output --no-tag", "spellcheck": "cspell lint", "spellcheck:ci": "npm run spellcheck -- --no-progress", "test": "vitest --config ./vite.config.ts", "test:update": "npm run test -- --update --run", "test:visual": "cross-env VISUAL=true npm run test -- --run", "typecheck": "tsc --noEmit" }, "engines": { "node": ">=18.0.0" }, "files": [ "lib", "pdf", "svg", "errors", "types", "utils" ], "peerDependencies": { "pdfkit": ">=0.13.0", "typescript": ">=4.7.0" }, "peerDependenciesMeta": { "pdfkit": { "optional": true }, "typescript": { "optional": true } }, "dependencies": { "svg-engine": "^0.3.0" }, "devDependencies": { "@cspell/dict-fr-fr": "^2.3.2", "@cspell/dict-it-it": "^3.1.6", "@schoero/configs": "^1.5.17", "@types/node": "^24.10.1", "@types/pdfkit": "^0.17.3", "@types/svg-parser": "^2.0.6", "changelogen": "^0.6.2", "cross-env": "^10.1.0", "cspell": "^9.3.2", "eslint": "^9.39.1", "glob": "^13.0.0", "markdownlint": "^0.39.0", "pdfkit": "^0.17.2", "typescript": "^5.9.3", "unwritten": "^0.2.14", "vite": "^7.2.4", "vite-plugin-dts": "^4.5.4", "vite-plugin-no-bundle": "^4.0.0", "vitest": "^4.0.13" }, "keywords": [ "swiss", "schweiz", "switzerland", "qr", "bill", "invoice", "rechnung", "swiss-qr-invoice", "swiss-qr-bill", "qr-invoice", "qr-rechnung", "qr-fattura", "qr-facture", "fattura", "facture", "pdf", "svg" ], "volta": { "node": "24.1.0" } }