{"_id":"@appsafetyhub/generator","_rev":"7-409f3c28bc12a98fc23e30441de3b1c2","name":"@appsafetyhub/generator","dist-tags":{"latest":"1.1.19"},"versions":{"1.1.12":{"name":"@appsafetyhub/generator","version":"1.1.12","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@pdfme/common":"file:../common","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"764f9dea438133a75ce065f8318c3145c4ce21db","_id":"@appsafetyhub/generator@1.1.12","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Bqr7JylbGFGBN2vkjEXC1A7udNM/191ee1vdHLUoPMPxHfT6HvUaEsg5uC+wlGk6yRPvcoE4fZEQF5I/qrURKA==","shasum":"9f8c77c92cdf85f6dd30a446eef1479c9bae446d","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.12.tgz","fileCount":10,"unpackedSize":31412,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWVza5aM5E0uaaxiuJ9Qhc3QD355cHNsjMHTFlQFFOTwIgBgvSVb/8tEbo7PnLRlG1GeCxru9FmhUOnvFmX6HPXWs="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.12_1684534475746_0.8528165262632139"},"_hasShrinkwrap":false},"1.1.13":{"name":"@appsafetyhub/generator","version":"1.1.13","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"file:../common","@appsafetyhub/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"74ed5a0ef793e20331e03f651f76e1b364744e2a","_id":"@appsafetyhub/generator@1.1.13","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-z3vwKbMtk9xn/qYwJTEfgFL3Z8igxk/sOVntYSXx/NEiEhPclO4QJ+caFmfH92pwR7w5V0Crc8Nv5rkbaSVT1w==","shasum":"e23aca3c8b6166a90ab0e1f0b1e7cecee9a0cbfa","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.13.tgz","fileCount":10,"unpackedSize":31619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCX/QDnrhvDPstDwfmrbau0sRTRbnMZFjHgKXgMfQ7qAiEA9OgdTKKuMP4Tc/rRTwOVMMrmcqSoILfuJba4HXlHVVQ="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.13_1684534806489_0.843632228702627"},"_hasShrinkwrap":false},"1.1.14":{"name":"@appsafetyhub/generator","version":"1.1.14","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"^1.1.14","@appsafetyhub/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"a692b6141c664ad319074ebde1a618bad38d2690","_id":"@appsafetyhub/generator@1.1.14","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fzSq+gNo1vN/jnnphLDR6S6OrvHS0BB/WL26DdkQI5EM+aPYTZZLrVDmMBhpo0DWouEvS0rLYdc9Qc1BWrVPaw==","shasum":"780b904d055d094c462a19ef0ef102b655b93bd4","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.14.tgz","fileCount":10,"unpackedSize":31612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtLE0vk6xrjnRa2EWBXqESXQAxU0kkduA/NOU2biEcCAiAoATfrPcw7ot4of69AoGrzoZvE7W8Ti5vEwccCASWMig=="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.14_1684535290619_0.6998207159335414"},"_hasShrinkwrap":false},"1.1.15":{"name":"@appsafetyhub/generator","version":"1.1.15","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"file:../common","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"a692b6141c664ad319074ebde1a618bad38d2690","_id":"@appsafetyhub/generator@1.1.15","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uzWD4UoIjE5o1EJpOW5JnaRPndGP8g7vh2zf8PCWnL2Ve8I/QL52tDStj4VQTz8S7emM/h2+tC/EnESgpBmGzg==","shasum":"b28bcb3fd3be6c44012cddb62d89b54b7fd6a1ef","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.15.tgz","fileCount":46,"unpackedSize":228288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICi4ZXUVYHTiPW3zLURezldRTub5iFPcJMgBGcF+1s6fAiEA62CMxEdh4UvFT5sk79UVQK+ULWNJBBrRPXfrV5gchTw="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.15_1684778898671_0.27797351711941976"},"_hasShrinkwrap":false},"1.1.16":{"name":"@appsafetyhub/generator","version":"1.1.16","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"file:../common","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"a692b6141c664ad319074ebde1a618bad38d2690","_id":"@appsafetyhub/generator@1.1.16","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6kcE3x5FS6XpKI2BRR48VxUQscm/9QCBbL6On+SSBpkiF9GibkXlW7lnzBjKJbjX2M0oTJ7bMvchkbe9kqOZUQ==","shasum":"9ec2c4bcc9743eb8e47e600bdb830ade0068cde5","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.16.tgz","fileCount":46,"unpackedSize":228288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqCpogUqlB6FOMWss50/kauTCAOksDeAsLUuDnsm9QDQIgXdP7b/rqW3tFia0dOz/dYEGP/ipBPhHDcPwL6HER59w="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.16_1684781901710_0.6553521602183452"},"_hasShrinkwrap":false},"1.1.17":{"name":"@appsafetyhub/generator","version":"1.1.17","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"file:../common","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"7ec1421dac608b1d29ad436da00b5495c8692bca","_id":"@appsafetyhub/generator@1.1.17","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-g39odxVPHJEaWWjFtuVvVLHXNdWmS2e8S+/Kac0tQRVYWP3c4nYfQE/ZHczBQ9f3skZ7zBIyO7u+mwP/sm7k6w==","shasum":"c5d39958769b0e560478a1c9b27704a731976a3c","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.17.tgz","fileCount":46,"unpackedSize":228288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYAISw5qNdkjG1T6Tcw1UaGQsceEns6x7eP34Ids+MwgIgQNSQdjQkpaCyoCFvmQzdx6wHTc1Nt/sV6r2ysLcTtb8="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.17_1685132525062_0.8253880408638801"},"_hasShrinkwrap":false},"1.1.18":{"name":"@appsafetyhub/generator","version":"1.1.18","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"^1.1.17","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"7ec1421dac608b1d29ad436da00b5495c8692bca","_id":"@appsafetyhub/generator@1.1.18","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O1mklNPH/K5k5K/loNljxyF3G25eYK0kOFaXFqOFKCJ2P2+vnAgZTQ4qJqSyeIvtSSAs59y+oTKKhRnyhFygIQ==","shasum":"b87b2ef6303cb0c7c36e3fe4c2a5bbee491d4b00","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.18.tgz","fileCount":46,"unpackedSize":228281,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBH3IYCuE++a1fax8HOn/0l4c5kPMvCnz77TzkIRjVLFAiASZk9LKsEyBfQqBvA2JMKZi41T2r0TsWDoCD0LcqN0fw=="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.18_1685132658247_0.9919045796415411"},"_hasShrinkwrap":false},"1.1.19":{"name":"@appsafetyhub/generator","version":"1.1.19","sideEffects":false,"author":{"name":"hand-dot"},"license":"MIT","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/types/src/index.d.ts","exports":{".":{"import":"./dist/esm/src/index.js","require":"./dist/cjs/src/index.js"}},"engines":{"node":">=14"},"scripts":{"develop":"tsc -w","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","clean":"rimraf dist","lint":"tsc --noEmit","test":"jest","lint:watch":"tsc -w --noEmit","test:watch":"jest --coverage --watch","prune":"ts-prune src"},"dependencies":{"@appsafetyhub/common":"^1.1.18","@pdfme/pdf-lib":"^1.17.3","atob":"^2.1.2","bwip-js":"^3.2.2","fontkit":"^2.0.2"},"devDependencies":{"@types/bwip-js":"^3.0.0","@types/pngjs":"^6.0.1","jsqr":"^1.4.0","pdf2json":"^2.0.0","pngjs":"^6.0.0"},"jest":{"resolver":"ts-jest-resolver","moduleFileExtensions":["js","ts"],"transform":{"^.+\\.ts$":"ts-jest"},"globals":{"ts-jest":{"tsconfig":"tsconfig.esm.json"}},"testMatch":["**/*.test.ts"]},"publishConfig":{"access":"public"},"gitHead":"7ec1421dac608b1d29ad436da00b5495c8692bca","_id":"@appsafetyhub/generator@1.1.19","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-pGPBVs6RAd50AMVSqRiXqbw/Fh6ydpGebsHD4rptKYs6yevy7ijWcIoMmhG2ZHloYMFzftiUZJnkmPAMeQjMeQ==","shasum":"835e7ab58eb709c82d2eef74a58ca265c5b1c439","tarball":"https://registry.npmjs.org/@appsafetyhub/generator/-/generator-1.1.19.tgz","fileCount":46,"unpackedSize":226253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh+2r6NoDM16pf9TSMyluRoGk4CSqlIpS0K/UspdR21wIgJj3dc6tg+KnMQQouBOppGdIALk4tzj+zWpGxSHJtkC0="}]},"_npmUser":{"name":"appsafetyhub","email":"cazeve@outlook.com"},"directories":{},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_1.1.19_1685547031992_0.20825404244454404"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-19T22:14:35.668Z","1.1.12":"2023-05-19T22:14:36.041Z","modified":"2023-05-31T15:30:32.293Z","1.1.13":"2023-05-19T22:20:06.706Z","1.1.14":"2023-05-19T22:28:10.786Z","1.1.15":"2023-05-22T18:08:18.825Z","1.1.16":"2023-05-22T18:58:21.869Z","1.1.17":"2023-05-26T20:22:05.211Z","1.1.18":"2023-05-26T20:24:18.444Z","1.1.19":"2023-05-31T15:30:32.172Z"},"maintainers":[{"name":"appsafetyhub","email":"cazeve@outlook.com"}],"description":"TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!","homepage":"https://pdfme.com","keywords":["pdf","pdf-generation","pdf-designer","pdf-viewer","typescript","react"],"repository":{"type":"git","url":"git+ssh://git@github.com/appsafetyhub/labeling.git"},"author":{"name":"hand-dot"},"bugs":{"url":"https://github.com/pdfme/pdfme/issues"},"license":"MIT","readme":"# PDFME\n<p>\n  <a href=\"https://github.com/pdfme/pdfme/blob/master/LICENSE.md\">\n    <img src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"pdfme is released under the MIT license.\" />\n  </a>\n  <a href=\"https://github.com/pdfme/pdfme/actions/workflows/nodejs.yml\">\n    <img src=\"https://github.com/pdfme/pdfme/workflows/Unit%20Testing/badge.svg\" alt=\"Unit Testing status\" />\n  </a>\n  <a href=\"https://www.npmjs.com/package/@appsafetyhub/generator\">\n    <img src=\"https://img.shields.io/npm/v/@appsafetyhub/generator.svg\" alt=\"Current npm package version.\" />\n  </a>\n  <a href=\"https://npmcharts.com/compare/@appsafetyhub/generator?minimal=true\">\n    <img src=\"https://img.shields.io/npm/dm/@appsafetyhub/generator.svg\" alt=\"Downloads per month on npm.\" />\n  </a>\n  <a href=\"https://pdfme.com/help#contribution\">\n    <img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs welcome!\" />\n  </a>\n  <a href=\"https://twitter.com/intent/tweet?text=Awesome+pdf+library%21&url=https://pdfme.com\">\n    <img src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=social\" alt=\"Tweet\" />\n  </a>\n</p>\n\nTypeScript base PDF generator and React base UI.\nOpen source, developed by the community, and completely free to use under the MIT license!\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/logo.svg\" width=\"300\"/>\n</p>\n\n## Features\n\n| Fast PDF Generator                                                                           | Easy PDF template design                              | Simple JSON template                                           |\n| -------------------------------------------------------------------------------------------- | ----------------------------------------------------- | -------------------------------------------------------------- |\n| Works on node and browser. Use templates to generate PDF, Complex operations are not needed. | Anyone can easily create templates with the designer. | Templates are JSON data that is easy to understand and handle. |\n\n---\n\n<!--\n    This is a copy of website/docs/getting-started.md from below.\n  - Replace the image path: /img/image.png -> /website/static/img/image.png\n  - Replace the link: / -> https://pdfme.com/\n -->\n\n## Introduction\n\npdfme was created to simplify the design and generation process of a PDF. It is especially useful for the following use cases:\n\n- Need to create a designed PDF with short code.\n- Need to integrate PDF editor features into an application.\n- Need to create a large number of PDFs without compromising performance\n\nAs an example, the author's service [https://labelmake.jp/](https://labelmake.jp/) can create more than 100 varieties of PDFs and generates more than 100,000 PDF files per month.\n\n## Installation\n\nThe operating requirements should be the node environment `>=14`. *Please see the note at the end of this section for usage on Node.js <16.*    \nThere are two packages in pdfme, generator and UI.\n\nThe package for generating PDF can be installed with the following command.\n\n```\nnpm i @appsafetyhub/generator\n```\n\nThe packages for using PDF designer, forms and viewers can be installed with the following commands.\n\n```\nnpm i @appsafetyhub/ui\n```\n\nThe following type, function and classes are available in pdfme.\n\n`@appsafetyhub/generator`\n\n- [generate](https://pdfme.com/docs/getting-started#generator)\n- [Template](https://pdfme.com/docs/getting-started#template)\n\n`@appsafetyhub/ui`\n\n- [Designer](https://pdfme.com/docs/getting-started#designer)\n- [Form](https://pdfme.com/docs/getting-started#form)\n- [Viewer](https://pdfme.com/docs/getting-started#viewer)\n- [Template](https://pdfme.com/docs/getting-started#template)\n\nIf your environment uses webpack, import the necessary items as shown below.\n\n```ts\nimport { Template, generate } from '@appsafetyhub/generator';\n```\n\n```ts\nimport { Template, Designer, Form, Viewer } from '@appsafetyhub/ui';\n```\n\n**All objects use `Template`, which will be briefly explained in the next section.**\n\n## Template\n\nThe core of pdfme library are Templates.  \nTemplate Type can be imported by both `@appsafetyhub/generator` or `@appsafetyhub/ui`. Templates are used everywhere.\n\nA template can be divided into two parts: a fixed part and a variable part.  \nWe call them basePdf and schema.\nThe following image is a good illustration of a template.\n\n![](https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/template.png)\n\n- **basePdf**: PDF data for the fixed part of the PDF to be generated.\n- **schemas**: Definition data for the variable part of the PDF to be generated.\n\n**basePdf** can be given a `string`(base64), `ArrayBuffer`, or `Uint8Array`.  \nA blank A4 PDF can be imported with `BLANK_PDF`. You can use it to check how it works.\n\n**schemas** currently has the following types of data available\n\n- text\n- image\n- Various types of barcodes\n\nLet's take a look at some specific data.  \n(If you are using TypeScript, you can import the Template type.)\n\n### Minimal Template\n\n```ts\nimport { Template, BLANK_PDF } from '@appsafetyhub/generator';\n// import { Template, BLANK_PDF } from '@appsafetyhub/ui'; <- Template types and BLANK_PDF can also be imported from @appsafetyhub/ui.\n\nconst template: Template = {\n  basePdf: BLANK_PDF,\n  schemas: [\n    {\n      a: {\n        type: 'text',\n        position: { x: 0, y: 0 },\n        width: 10,\n        height: 10,\n      },\n      b: {\n        type: 'text',\n        position: { x: 10, y: 10 },\n        width: 10,\n        height: 10,\n      },\n      c: {\n        type: 'text',\n        position: { x: 20, y: 20 },\n        width: 10,\n        height: 10,\n      },\n    },\n  ],\n};\n```\n\n[For more information, please refer to the API documentation of the Template type here](https://pdfme.com/docs/api/common/#template).\n\nYou can create a template from [Template Design page](https://pdfme.com/template-design). Or, if you want to integrate the template creation feature into your application, check out the [Designer section](https://pdfme.com/docs/getting-started#designer).\n\n## Generator\n\nThe PDF generator function, `generate`, takes 2 arguments of `template` and `inputs` for generate a PDF. It works both in Node.js and in the browser.\n\nThe code to generate a PDF file using the [template created above](https://pdfme.com/docs/getting-started#sample-template) is shown below.\n\n```ts\nimport { Template, generate } from '@appsafetyhub/generator';\n\nconst template: Template = {\n  // skip...　Check the Template section.\n};\nconst inputs = [{ a: 'a1', b: 'b1', c: 'c1' }];\n\ngenerate({ template, inputs }).then((pdf) => {\n  console.log(pdf);\n\n  // Browser\n  // const blob = new Blob([pdf.buffer], { type: 'application/pdf' });\n  // window.open(URL.createObjectURL(blob));\n\n  // Node.js\n  // fs.writeFileSync(path.join(__dirname, `test.pdf`), pdf);\n});\n```\n\nYou can create a PDF file like the below.\n\n![](https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/simplePdf.png)\n\nAlso, each element in the inputs array corresponds to a page in the PDF, you can create a multi-page PDF file by providing multiple elements of inputs.\n\n[For more information, please refer to the API documentation of the generate function here](https://pdfme.com/docs/api/generator/#generate).\n\n## UI\n\n### Designer\n\nThe Designer allows you to edit the Template schemas, making it easy for anyone to create Template json objects.\n\nYou can design your own template from [Template Design page](https://pdfme.com/template-design), or you can integrate the designer into your application.\n\nLet's integrate the designer using the template created above as the default template.\n\n```ts\nimport { Template, Designer } from '@appsafetyhub/ui';\n\nconst domContainer = document.getElementById('container');\nconst template: Template = {\n  // skip...　Check the Template section.\n};\n\nconst designer = new Designer({ domContainer, template });\n```\n\nThe Designer class is instantiated as shown above, and the template designer is displayed in the `domContainer`.  \nYou can edit the template as shown below. The operation is like Google Slides, etc., so you can use common keyboard shortcuts.\n\n![](https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/designer.gif)\n\nThe designer instance can be manipulated with the following methods.\n\n- `saveTemplate`\n- `updateTemplate`\n- `getTemplate`\n- `onChangeTemplate`\n- `onSaveTemplate`\n- `destroy`\n\n[For more information, please refer to the API documentation of the Designer class here](https://pdfme.com/docs/api/ui/classes/Designer).\n\n### Form\n\nYou can use templates to create forms and PDF viewers.\n\nThe Form creates a UI for the user to enter schemas based on the template.\n\n```ts\nimport { Template, Form } from '@appsafetyhub/ui';\n\nconst domContainer = document.getElementById('container');\nconst template: Template = {\n  // skip...\n};\n// This is initial data.\nconst inputs = [{ a: 'a1', b: 'b1', c: 'c1' }];\n\nconst form = new Form({ domContainer, template, inputs });\n```\n\n![](https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/form.gif)\n\nThe form instance has a method `getInputs` to get the user's input.\n\nYou can generate a PDF file based on the user's input by passing the data you get from `getInputs` as inputs to generate, as shown in the code below.\n\n```ts\ngenerate({ template, inputs: form.getInputs() }).then((pdf) => {\n  const blob = new Blob([pdf.buffer], { type: 'application/pdf' });\n  window.open(URL.createObjectURL(blob));\n});\n```\n\n[For more information, please refer to the API documentation of the Form class here](https://pdfme.com/docs/api/ui/classes/Form).\n\n### Viewer\n\nViewing a PDF file in a mobile browser is a pain, because it doesn't display well in an iframe.\n\nThe Viewer is a byproduct of the Form development process, but it allows you to show your users a preview of the PDF file you will create.\n\nUsing the Viewer is basically the same as using the Form, except that user cannot edit it.\n\n```ts\nimport { Template, Viewer } from '@appsafetyhub/ui';\n\nconst domContainer = document.getElementById('container');\nconst template: Template = {\n  // skip...\n};\nconst inputs = [{ a: 'a1', b: 'b1', c: 'c1' }];\n\nconst viewer = new Viewer({ domContainer, template, inputs });\n```\n\n![](https://raw.githubusercontent.com/pdfme/pdfme/main/website/static/img/viewer.png)\n\n[For more information, please refer to the API documentation of the Viewer class here](https://pdfme.com/docs/api/ui/classes/Viewer).\n\n## Special Thanks\n\n- [pdf-lib](https://pdf-lib.js.org/): Used in PDF generation.\n- [PDF.js](https://mozilla.github.io/pdf.js/): Used in PDF viewing.\n- [React](https://reactjs.org/): Used in building the UI.\n- [react-moveable](https://daybrush.com/moveable/), [react-selecto](https://github.com/daybrush/selecto), [@scena/react-guides](https://daybrush.com/guides/): Used in Designer UI.\n- [dnd-kit](https://github.com/clauderic/dnd-kit): Used in Designer UI.\n- [bwip-js](https://github.com/metafloor/bwip-js): Used in barcode generation.\n- [zod](https://github.com/colinhacks/zod): Used in Validation.\n\nI definitely could not have created pdfme without these libraries. I am grateful to the developers of these libraries.\n","readmeFilename":"README.md"}