{"_id":"@aalzehla/capacitor-screenshot","_rev":"2-669fb49a8ab6e3707eeee7740be068c1","name":"@aalzehla/capacitor-screenshot","dist-tags":{"latest":"8.0.1"},"versions":{"8.0.0":{"name":"@aalzehla/capacitor-screenshot","version":"8.0.0","keywords":["capacitor","plugin","native","screenshot"],"author":{"url":"ludufre","name":"Luan Freitas"},"license":"MIT","_id":"@aalzehla/capacitor-screenshot@8.0.0","maintainers":[{"name":"aalzehla","email":"aalzehla@gmail.com"}],"homepage":"https://github.com/ludufre/capacitor-screenshot#readme","bugs":{"url":"https://github.com/ludufre/capacitor-screenshot/issues"},"dist":{"shasum":"7327f30962bf78c8bd96c943810c10d721f91385","tarball":"https://registry.npmjs.org/@aalzehla/capacitor-screenshot/-/capacitor-screenshot-8.0.0.tgz","fileCount":24,"integrity":"sha512-ZjjKjvMGunVKUaMpUmg+xV2gZ8aZSt7xJrPnreKsPHJCw9Jt4KzCj2FOzfJopRUnVK6Kai+0hxuwzv5q5gf8vg==","signatures":[{"sig":"MEUCIQDqB8nwWUjMTuwKYV8WwgcM9c0FUeD0wRo64syN8+QHJQIgXkmNcH8ckz1fZ0E0EuNe6yFnBIh0dvB8FnuUc/feiBQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26539},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"279821581652e04cfca0152a9645021499b498d1","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api ScreenshotPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","verify:ios":"xcodebuild -scheme CapacitorScreenshot -destination generic/platform=iOS","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"aalzehla","email":"aalzehla@gmail.com"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/ludufre/capacitor-screenshot.git","type":"git"},"_npmVersion":"10.9.0","description":"This plugin take screenshot of the app or webpage","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","rimraf":"^6.1.0","rollup":"^4.53.2","prettier":"^3.6.2","swiftlint":"^2.0.0","typescript":"^5.9.3","@capacitor/ios":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/docgen":"^0.3.1","@capacitor/android":"^8.0.0","@ionic/eslint-config":"^0.4.0","prettier-plugin-java":"^2.7.7","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-screenshot_8.0.0_1768758648328_0.03776788491357763","host":"s3://npm-registry-packages-npm-production"}},"8.0.1":{"name":"@aalzehla/capacitor-screenshot","version":"8.0.1","description":"This plugin take screenshot of the app or webpage","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Luan Freitas","url":"ludufre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ludufre/capacitor-screenshot.git"},"bugs":{"url":"https://github.com/ludufre/capacitor-screenshot/issues"},"keywords":["capacitor","plugin","native","screenshot"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"xcodebuild -scheme AalzehlaCapacitorScreenshot -destination generic/platform=iOS","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","docgen":"docgen --api ScreenshotPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@capacitor/android":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/docgen":"^0.3.1","@capacitor/ios":"^8.0.0","@ionic/eslint-config":"^0.4.0","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","eslint":"^8.57.1","prettier":"^3.6.2","prettier-plugin-java":"^2.7.7","rimraf":"^6.1.0","rollup":"^4.53.2","swiftlint":"^2.0.0","typescript":"^5.9.3"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"_id":"@aalzehla/capacitor-screenshot@8.0.1","gitHead":"279821581652e04cfca0152a9645021499b498d1","homepage":"https://github.com/ludufre/capacitor-screenshot#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-Bnnp3v7YRtfKxqfR4mVzJP8mAOVKFsHy6IEAKd7xAE83e/gkJMWQAK+VvUCKfiEPeCyzTH+GuSJf7kJ3ag6xYA==","shasum":"bd7136ef9310ec65c1a8337fbdcfd0cebf141432","tarball":"https://registry.npmjs.org/@aalzehla/capacitor-screenshot/-/capacitor-screenshot-8.0.1.tgz","fileCount":24,"unpackedSize":26587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDHmK4/u4Zg7PG3G+VDS1cA5sYb48lZi9TBlqyZD13UYAIgZpiBjzAf+RpBgaG3/DlbDuqgVY+aOJMntAyMI1TbL2k="}]},"_npmUser":{"name":"aalzehla","email":"aalzehla@gmail.com"},"directories":{},"maintainers":[{"name":"aalzehla","email":"aalzehla@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-screenshot_8.0.1_1768765205067_0.24618366751694643"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-18T17:50:47.731Z","modified":"2026-01-18T19:40:05.377Z","8.0.0":"2026-01-18T17:50:48.493Z","8.0.1":"2026-01-18T19:40:05.274Z"},"bugs":{"url":"https://github.com/ludufre/capacitor-screenshot/issues"},"author":{"name":"Luan Freitas","url":"ludufre"},"license":"MIT","homepage":"https://github.com/ludufre/capacitor-screenshot#readme","keywords":["capacitor","plugin","native","screenshot"],"repository":{"type":"git","url":"git+https://github.com/ludufre/capacitor-screenshot.git"},"description":"This plugin take screenshot of the app or webpage","maintainers":[{"name":"aalzehla","email":"aalzehla@gmail.com"}],"readme":"<p align=\"center\"><br><img src=\"https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png\" width=\"128\" height=\"128\" /></p>\n<h3 align=\"center\">Screenshot</h3>\n<p align=\"center\"><strong><code>capacitor-screenshot</code></strong></p>\n<p align=\"center\">\n  Ionic Capacitor plugin for take screenshot\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/maintenance/yes/2025?style=flat-square\" />\n  <a href=\"https://www.npmjs.com/package/capacitor-screenshot\"><img src=\"https://img.shields.io/npm/l/capacitor-screenshot?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/capacitor-screenshot\"><img src=\"https://img.shields.io/npm/dw/capacitor-screenshot?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/capacitor-screenshot\"><img src=\"https://img.shields.io/npm/v/capacitor-screenshot?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all%20contributors-0-orange?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<br />\n<a href=\"https://www.buymeacoffee.com/ludufre\"><img src=\"https://img.shields.io/badge/Buy%20me%20a%20coffee-ludufre-fce802?style=flat-square\" alt=\"Buy me a coffee\"></a>\n</p>\n\n## Maintainers\n\n| Maintainer             | GitHub                                | Social                            | LinkedIn                                                           |\n| ---------------------- | ------------------------------------- | --------------------------------- | ------------------------------------------------------------------ |\n| Luan Freitas (ludufre) | [ludufre](https://github.com/ludufre) | [@ludufre](https://x.com/ludufre) | [Luan Freitas](https://www.linkedin.com/in/luan-freitas-14341687/) |\n\n## Installation\n\n```terminal\nnpm install capacitor-screenshot\nionic cap sync\n```\n\n```terminal\nyarn install capacitor-screenshot\nionic cap sync\n```\n\n```terminal\npnpm add capacitor-screenshot\nionic cap sync\n```\n\n## Configuration\n\nNot needed.\n\n## Usage\n\n```typescript\nimport { Screenshot } from 'capacitor-screenshot';\n\n...\n\nScreenshot.take().then((ret: { base64: string }) => {\n    console.log(ret.base64); // or `data:image/png;base64,${ret.base64}`\n});\n\n// Or save to disk and get file path and web path\nScreenshot.take({saveToDisk: true}).then((ret: { base64: string; path: string; webPath: string }) => {\n    console.log(ret);\n});\n```\n\n<a href=\"https://www.buymeacoffee.com/ludufre\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\"></a>","readmeFilename":"README.md"}