{"_id":"@loskir/styled-qr-code-node","_rev":"4-835a3162025092ac84378273c048b421","name":"@loskir/styled-qr-code-node","dist-tags":{"latest":"2.0.0"},"versions":{"1.5.0":{"name":"@loskir/styled-qr-code-node","version":"1.5.0","keywords":["qr","qrcode","qr-code","js","qrjs","qrstyling","styling","qrbranding","branding","qrimage","image","qrlogo","logo","design"],"author":{"name":"Kirill Loskutov","email":"kl@sinker.ru"},"license":"MIT","_id":"@loskir/styled-qr-code-node@1.5.0","maintainers":[{"name":"loskir","email":"kl@sinker.ru"}],"homepage":"https://github.com/loskir/styled-qr-code#readme","bugs":{"url":"https://github.com/loskir/styled-qr-code/issues"},"dist":{"shasum":"77e65986794d9e6f825330e95861380428cb506c","tarball":"https://registry.npmjs.org/@loskir/styled-qr-code-node/-/styled-qr-code-node-1.5.0.tgz","fileCount":6,"integrity":"sha512-cJes6X2UzK52zLuWA7T1dNnjkIA5kxPOiuwWe/ZRoXyLIksS1PJEe5hlkq7i7Bi5RmWXfPt7MwmDVTzPeFW8gQ==","signatures":[{"sig":"MEUCIQD1Go7We6jDvkkmpNF23xCz03m8TXQOcYVrDp/sJJeARAIgZFSXxPqvUx455hMWOLwx/6yb2fad5ou5/LJkLxObRqU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJPRKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqK5w/+IHM2/DsxczTmjODLaVSJ86ecteyd1D+fma01l1IC9DtU5eSU\r\nAu7E4BcGhJjdRUaQO52EO+Xca1vtf6u4m1OL06U9QjfuVOFFYKnD75Ll7E5l\r\nGvPyOdWoAvfID4I+g0mFmYuV69G1yVMu8A5coxh9ICOuM96WBZUgxfIez4xn\r\nCWre4t9tUoZmOouBEPKciXzSUO8vJhTj9vWyzFjZ/riGV0DcTHjfwfR5TzBf\r\nUfz/njkFmJHK89qPKmesMx3SjS28s0BfoRNE5m5tCwfKKVCBOmZWgbrIeowi\r\nIldWCQHva3koh5VvkyiHR5Yw7QbLXtTi/3nl7a2Bh6maYCvBkhJWxgDc7oca\r\nsVOk2SSydD5vaLagda09ocQzhCyj2CmrccRBEnQtel2jXHMUZgIugJlfVV3W\r\nYycGP4innXxSjZOw4U50YhlMNQzqOERQNu8Snyt9wxjoDdaNZODpytYAlcFF\r\nlhftrwAn0vL4bXBU9e3VWcP0CtpN/xt8+Z4sq/22TEUmSAeCf9C89i4WLLOp\r\n9FOTD9Gzb1FII96qWjyGTJ7RdifukDAPYnMHFtAN+Rb9wWLcQfIqPP/HHzU3\r\nUdEwzlRtX1MJCJ76oU2G4C4XdEkbc2KYjnKLJIXvr2Ut7G7fxNGbiPkgeXjD\r\ngkgaOA8GVqzNbfKjj80pTkcLNBXGgItRDFA=\r\n=mlXS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"683b31cf74cb4d639228ab69e87092c264dd128e","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"loskir","email":"kl@sinker.ru"},"repository":{"url":"git+https://github.com/loskir/styled-qr-code.git","type":"git"},"_npmVersion":"8.19.1","description":"Add a style and an image to your QR code","directories":{},"_nodeVersion":"18.9.0","dependencies":{"skia-canvas":"^1.0.0","qrcode-generator":"^1.4.4"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","eslint":"^8.22.0","prettier":"^2.7.1","typescript":"^4.8.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/styled-qr-code-node_1.5.0_1663366218226_0.5796737847012585","host":"s3://npm-registry-packages"}},"1.5.1":{"name":"@loskir/styled-qr-code-node","version":"1.5.1","keywords":["qr","qrcode","qr-code","js","qrjs","qrstyling","styling","qrbranding","branding","qrimage","image","qrlogo","logo","design"],"author":{"name":"Kirill Loskutov","email":"kl@sinker.ru"},"license":"MIT","_id":"@loskir/styled-qr-code-node@1.5.1","maintainers":[{"name":"loskir","email":"kl@sinker.ru"}],"homepage":"https://github.com/loskir/styled-qr-code#readme","bugs":{"url":"https://github.com/loskir/styled-qr-code/issues"},"dist":{"shasum":"975757ffcfd69bba705d37e6fcd5bad69380e46d","tarball":"https://registry.npmjs.org/@loskir/styled-qr-code-node/-/styled-qr-code-node-1.5.1.tgz","fileCount":6,"integrity":"sha512-GAGaUiQw+6b27nVJWtURUMXbqEr5mk9OOHoMfqhbGKKWI8fEcICf5VFkxcMgI/kQrSgOh/yag+aBb3rKA11gwg==","signatures":[{"sig":"MEUCIQDEhQ86K0EkAbgfYG8Z5DvydIocggpHK4dRNcPjoJ+r5QIgFJSrh1cKutO/NhbOn0/7zfvpb+jmCZIaZyBhzaMmSr8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJiZJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3ow//UjDQ3bRwJRh9QJW1PAAelFldS9ujyqnx4CLXDqsqbJgOrHQq\r\nFHFVdfbOo9q1HNDtAua7NR0hil+N7tM9krTLBeC3euMeX/vmdMSzyvmjN5Yr\r\nS79holA9ca56OTLgzp1y9PwtB4sTX03YZ/+n3rktqbhFFPZ8aOpFTsCbiLl3\r\nyDgivnyZ4cpu+j37h2pRMG/7vblF0hV5hz56ixalTZKVOfqwbCkTyp/PJ2Ev\r\nPrK1Z34wzQI9U2AjI7NuT50VN8N/9aYbHnfSmvpDEW1GWpJAhTYy0QZ/LOKi\r\nzwd5HDeRzcEQjdR2Mc3sRrUneo1hnHks3N8ILg/UnZm5OYnBlTTJbq5ONdfK\r\ngdibwRmEWOqLgygrmY/6LEtzdYfoeKCMkficKIJ0AmhZo8YBrdNQG55GlTZK\r\negiJku4za46hcEgI+0Yg42Bu+2B/elDCUzTPmyyvRauJ4T6mOENlpmz+MST7\r\nuonMoY3+N2rh3XOfdqeYKY9MQkIPfBWiMGtRnrDhNFLIbz2oFWgIWFut2Ey5\r\ney0+igjOULtPxaAM5iQIFc5IKdpnwq8Vi/OssJX42ddlV8a5YGEE/HPpo3vQ\r\n7ix2ulA0wqCAsxsve0+jlnDxwTghkhkHGeM8HwEcIDgFNbhoz8qhSsxmLnZO\r\nnZjxdbWZ8HP1yx2XV9jg7/RK04h/FZLHGgM=\r\n=rnsS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"683b31cf74cb4d639228ab69e87092c264dd128e","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"loskir","email":"kl@sinker.ru"},"repository":{"url":"git+https://github.com/loskir/styled-qr-code.git","type":"git"},"_npmVersion":"8.19.1","description":"Add a style and an image to your QR code","directories":{},"_nodeVersion":"18.9.0","dependencies":{"skia-canvas":"^1.0.0","qrcode-generator":"^1.4.4"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","eslint":"^8.22.0","prettier":"^2.7.1","typescript":"^4.8.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/styled-qr-code-node_1.5.1_1663444553661_0.6839327517244831","host":"s3://npm-registry-packages"}},"1.5.2":{"name":"@loskir/styled-qr-code-node","version":"1.5.2","keywords":["qr","qrcode","qr-code","js","qrjs","qrstyling","styling","qrbranding","branding","qrimage","image","qrlogo","logo","design"],"author":{"name":"Kirill Loskutov","email":"kl@sinker.ru"},"license":"MIT","_id":"@loskir/styled-qr-code-node@1.5.2","maintainers":[{"name":"loskir","email":"kl@sinker.ru"}],"homepage":"https://github.com/loskir/styled-qr-code#readme","bugs":{"url":"https://github.com/loskir/styled-qr-code/issues"},"dist":{"shasum":"bf51961812ee377565457cb0e643f3f3a55d8988","tarball":"https://registry.npmjs.org/@loskir/styled-qr-code-node/-/styled-qr-code-node-1.5.2.tgz","fileCount":6,"integrity":"sha512-+lMq5xNlArSPGE9/hll2jJNfBDJXH722hWBW30Uoxo5GE6Qt0FllH5lQYqvUclZu7tAbxC7yuJB7kyGnR1Xl9A==","signatures":[{"sig":"MEQCIHXL/5raCcFUV3EwGgz9yUTWdxOGmeVn2Rh3V5w/a1JQAiAfp4XbVeinZuVNJMIXwXhOL6Q98BfZmxOTIiTdt8Lhog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84242},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"107d09963aae8926fa992a6bf70445ec918e75cb","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"loskir","email":"kl@sinker.ru"},"repository":{"url":"git+https://github.com/loskir/styled-qr-code.git","type":"git"},"_npmVersion":"10.2.3","description":"Add a style and an image to your QR code","directories":{},"_nodeVersion":"20.10.0","dependencies":{"skia-canvas":"^1.0.2","qrcode-generator":"^1.4.4"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","eslint":"^8.22.0","prettier":"^2.7.1","typescript":"^4.8.2","@types/node":"^22.5.4","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/styled-qr-code-node_1.5.2_1725543121217_0.8578083821648499","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@loskir/styled-qr-code-node","version":"2.0.0","description":"Add a style and an image to your QR code","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"dependencies":{"qrcode-generator":"^2.0.4","skia-canvas":"^3.0.8"},"devDependencies":{"@types/node":"^22.5.4","@typescript-eslint/eslint-plugin":"^5.35.1","@typescript-eslint/parser":"^5.35.1","eslint":"^8.22.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.7.1","tsup":"^6.2.3","typescript":"^4.8.2"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","lint":"eslint src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/loskir/styled-qr-code.git"},"keywords":["qr","qrcode","qr-code","js","qrjs","qrstyling","styling","qrbranding","branding","qrimage","image","qrlogo","logo","design"],"author":{"name":"Kirill Loskutov","email":"kl@sinker.ru"},"license":"MIT","bugs":{"url":"https://github.com/loskir/styled-qr-code/issues"},"_id":"@loskir/styled-qr-code-node@2.0.0","gitHead":"51d156d94dc9daedb7add4b2b5303ace9ca7e3bb","homepage":"https://github.com/loskir/styled-qr-code#readme","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-Aiu6cXWQujkO6by64SNnR+ZAAOzQNPLigrQt2itPS73S/W7XfUaWQpkkJ0PBlLxQhNVyj/9AMhxvs/ZEkGBojQ==","shasum":"5ba0c0d2955aa5cc961b84d34f40eb90f07c9bce","tarball":"https://registry.npmjs.org/@loskir/styled-qr-code-node/-/styled-qr-code-node-2.0.0.tgz","fileCount":6,"unpackedSize":84154,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID01YUhA1hLlpvwUT1iROSO1i9ahuQ+MGomMIdHioDbzAiA5JMEBsDD+AU9nWeTj2+43To2tghQXX/r0kfTVUZ47CQ=="}]},"_npmUser":{"name":"loskir","email":"kl@sinker.ru"},"directories":{},"maintainers":[{"name":"loskir","email":"kl@sinker.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/styled-qr-code-node_2.0.0_1773773867875_0.5697845293917412"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-16T22:10:18.153Z","modified":"2026-03-17T18:57:48.112Z","1.5.0":"2022-09-16T22:10:18.428Z","1.5.1":"2022-09-17T19:55:53.886Z","1.5.2":"2024-09-05T13:32:01.468Z","2.0.0":"2026-03-17T18:57:48.012Z"},"bugs":{"url":"https://github.com/loskir/styled-qr-code/issues"},"author":{"name":"Kirill Loskutov","email":"kl@sinker.ru"},"license":"MIT","homepage":"https://github.com/loskir/styled-qr-code#readme","keywords":["qr","qrcode","qr-code","js","qrjs","qrstyling","styling","qrbranding","branding","qrimage","image","qrlogo","logo","design"],"repository":{"type":"git","url":"git+https://github.com/loskir/styled-qr-code.git"},"description":"Add a style and an image to your QR code","maintainers":[{"name":"loskir","email":"kl@sinker.ru"}],"readme":"# QR Code Styling\n\nJavaScript library for generating QR codes with a logo and styling.\n\n**This is a NodeJS fork of the QR code styling repo [qr-code-styling](https://github.com/kozakdenys/qr-code-styling),\nsupporting NodeJs as well as svg exports. If you are looking for browser support head to the original project**\n\nTry it here https://qr-code-styling.com\n\nIf you have issues / suggestions / notes / questions, please open an issue or contact me. Let's create a cool library\ntogether.\n\n### Examples\n\n<p float=\"left\">\n<img style=\"display:inline-block\" src=\"https://raw.githubusercontent.com/kozakdenys/qr-code-styling/master/src/assets/facebook_example_new.png\" width=\"240\" />\n<img style=\"display:inline-block\" src=\"https://raw.githubusercontent.com/kozakdenys/qr-code-styling/master/src/assets/qr_code_example.png\" width=\"240\" />\n<img style=\"display:inline-block\" src=\"https://raw.githubusercontent.com/kozakdenys/qr-code-styling/master/src/assets/telegram_example_new.png\" width=\"240\" />\n</p>\n\n### Installation\n\n```\nnpm install @loskir/styled-qr-code-node\n```\n\n### Usage\n\n```typescript\nimport {QRCodeCanvas} from '@loskir/styled-qr-code-node';\nconst {QRCodeCanvas} = require('@loskir/styled-qr-code-node'); // or CommonJS\n\nconst qrCode = new QRCodeCanvas({\n  data: 'My text or trl',\n  image: 'pathToImage'\n});\n\n//\"png\" | \"jpg\" | \"jpeg\" | \"pdf\" | \"svg\"\nawait qrCode.toFile('output.png', 'png');\n```\n\n### API Documentation\n\n#### Styling options\n\n[Please refer to the original](https://github.com/KilianB/styled-qr-code#api-documentation)\n\n#### Export methods\n\n`qrCode.toFile(options) => Promise<void>`\n\n| Param    | Type                                                                                                                                                                 | Default Value                                                                                                                             | Description                                                                                            |\n| -------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| filePath | string                                                                                                                                                               |                                                                                                                                           | the path where the image will be saved                                                                 |\n| format   | string (`\"png\" / \"jpg\" / \"jpeg\" / \"pdf\" / \"svg\"`) | `'png'` | File format                                                                                            |\n| options  | skia-canvas RenderOptions                                                                                                                                            | undefined                                                                                                                                 | [see doc](https://github.com/samizdatco/skia-canvas#tobufferformat-page-matte-density-quality-outline) |\n\n`qrCode.totoDataUrl(options) => Promise<string>`\n\n| Param    | Type                                                                                         | Default Value | Description                                                                                           |\n| -------- |----------------------------------------------------------------------------------------------|---------------|-------------------------------------------------------------------------------------------------------|\n| format   | string (`\"png\" / \"jpg\" / \"jpeg\" / \"pdf\" / \"svg\"`)                                            | `'png'`       | File format                                                                                           |\n| options  | skia-canvas RenderOptions                                                                    | undefined     | [see doc](https://github.com/samizdatco/skia-canvas#tobufferformat-page-matte-density-quality-outline) |\n\n`qrCode.toBuffer(options) => Promise<Buffer>`\n\n| Param    | Type                                                                                         | Default Value | Description                                                                                           |\n| -------- |----------------------------------------------------------------------------------------------|---------------|-------------------------------------------------------------------------------------------------------|\n| format   | string (`\"png\" / \"jpg\" / \"jpeg\" / \"pdf\" / \"svg\"`)                                            | `'png'`       | File format                                                                                           |\n| options  | skia-canvas RenderOptions                                                                    | undefined     | [see doc](https://github.com/samizdatco/skia-canvas#tobufferformat-page-matte-density-quality-outline) |\n","readmeFilename":"README.md"}