{"_id":"@anhdayem818/capture_electron","_rev":"2-6d0f8650abe22dda027e2f31087c580f","name":"@anhdayem818/capture_electron","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@anhdayem818/capture_electron","description":"Capture screenshots using electron ( fork from juliangruber )","version":"0.0.1","repository":{"type":"git","url":"git://github.com/juliangruber/capture-electron.git"},"scripts":{"test":"tap --reporter=tap test.js && npm run lint","lint":"prettier-standard '**/*.js' && standard"},"homepage":"https://github.com/juliangruber/capture-electron","main":"index.js","dependencies":{"electron":"^1.8.8","safe-buffer":"^5.1.1","shell-escape":"^0.2.0"},"devDependencies":{"prettier-standard":"^8.0.1","standard":"^11.0.1","tap":"^12.0.1"},"keywords":["electron","screenshot","headless"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","bugs":{"url":"https://github.com/juliangruber/capture-electron/issues"},"_id":"@anhdayem818/capture_electron@0.0.1","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"anhdayem818","email":"anhdayem818@gmail.com"},"dist":{"integrity":"sha512-3jZ4pYBreA5QD/t9GYWOp56DfIWwQto8KrzMUvTlYSdIQQEdnHEckac58wJwRwfMekAlUdhBDDhCy1TrcgUqow==","shasum":"e9235255f138a071b80af1ff4b8e13c77d6d314a","tarball":"https://registry.npmjs.org/@anhdayem818/capture_electron/-/capture_electron-0.0.1.tgz","fileCount":10,"unpackedSize":362362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQTNUCRA9TVsSAnZWagAAR1YP/2PQCMaxTKw9ABkQyrSr\nHLZZUn5Q/PQdJNQB97er00sKI4Wt3m3NluLp828pdTyMpnXR+47nBvZj9KBy\nmiDSdmQlgl7TWl4kfQHI6/uZMsD9AOrVDQsDDtL6/JfCAXi9fPopa0mD5+ua\n18Um80qkkG8zoJgW5dYxOayGibIz41u9hot4c5g8qyrRmED9M5oIGWKws5jg\n8ucmI4Hqv0c1i6FKM4oOlTwHUJEldnzg/p2Evcko7nAg/DrE+F8w3b9SlxTS\nCkWleMbgPeqB85Uk88UUVDOcLJsAapkrSl2aSejtjYbNx3r7pEgjJxMPIfuk\nLhysaGJQ0WhFrY0uRT267xWEes0YiAsJ5isaes437/hH6/ZNAgLsfomly0u9\n3mohd0LLwJAXA3Tcj/O4YZL9wT6QiKKdRWz+Hl2a69QGjiGp9kkL3JU3l+LZ\njAWuyLWE/ELSYXsgC8jb47Swfoz+RzRdSVxVhKvLDmoJBcCH7rz+OV2bLhzW\nmsRKuf9txMP1Jsmv8xV3SazL9QscuWyAJ3SHfgfQBuEvqSwQWdxnpeqXLzX3\nl3L3g0yBKDtiLQAueSH6JoepyNyWNpMECzzR8sTulhO1gaO2M/zJA3cFmnhV\nrnU32oJ5dSw7cQ8F46HPz65bYsfWLHxr5oL0TUCiqWh+hxBjg2fhcIFZSekU\nBEi1\r\n=aoXq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDyR6BKPBG0oOQe9pPjUVxc55GFUP7BvPAjxEH1kKRU9AiBhmLJFV7BfNhAeeEfTaWLmtwW9MT02TaBWFjAPIm4Idw=="}]},"maintainers":[{"name":"anhdayem818","email":"anhdayem818@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capture_electron_0.0.1_1547776852017_0.6492489544314264"},"_hasShrinkwrap":false},"0.0.2":{"name":"@anhdayem818/capture_electron","description":"Capture screenshots using electron ( fork from juliangruber )","version":"0.0.2","repository":{"type":"git","url":"git://github.com/juliangruber/capture-electron.git"},"scripts":{"test":"tap --reporter=tap test.js && npm run lint","lint":"prettier-standard '**/*.js' && standard"},"homepage":"https://github.com/juliangruber/capture-electron","main":"index.js","dependencies":{"electron":"^1.8.8","safe-buffer":"^5.1.1","shell-escape":"^0.2.0"},"devDependencies":{"prettier-standard":"^8.0.1","standard":"^11.0.1","tap":"^12.0.1"},"keywords":["electron","screenshot","headless"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","bugs":{"url":"https://github.com/juliangruber/capture-electron/issues"},"_id":"@anhdayem818/capture_electron@0.0.2","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"anhdayem818","email":"anhdayem818@gmail.com"},"dist":{"integrity":"sha512-+wGXqRUNQLwaw1WHCCJsOF9VpJ1W1XNXKiEx96teekiNW0D5KprAsT9tbAT6fQvBW6e2LFXyMTk1xtgJeEciZw==","shasum":"2edc6d3cfc7607e770450efdc830bfac45c5dc32","tarball":"https://registry.npmjs.org/@anhdayem818/capture_electron/-/capture_electron-0.0.2.tgz","fileCount":10,"unpackedSize":362362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQTmgCRA9TVsSAnZWagAAsHgP/RvoSejdLOhYocGNSmZJ\nTDJAAHtpC14mCONHPCgzpupB0hiASh1dQ+NVSYoJd6tNX5JNJvNj+pQyuDT+\njA9GeBsXxFstjcOPL8y0zJVYFtj5JI1zgl5nkaNRR2MY2dJFZawjlHe8pRLJ\nNv0Xls0piRvux7GWhJedmvebT55E+hu+293N0MW9VCY0Useo1EEQ6Nj25Q8j\nvCvUK24wa/zE48ywF0gohAWCexl5bUhpqX0bz64b6u/b2z2xPlzpMPVGQxsD\nxWx10/y6xesrYaK+1DDo+OKA6kcRcso3aHI+efjlrE8OW1VrgIV8r3oBsTo7\nY2c2YPBkC8hNcrINzO7z98vG/Jj7fHq1kFp0p/zkLzHYzNQ345Vm2WJYHRu+\nyH74roZ4g16eJkgxqUBWYsJU7pddjT2qIudvaIiHmmfo0hw4XCv8lSOx9ZNO\nmFcvYTjSjyOsoLktpHiA38lhUd9udKvgV2BNQr4Hwy9h1X3w70hWwkKmgAkV\naYUU8tGVQqdV1y7IqGVfIqg7F3kaPSjTccOR6FV4GyXT4Iw5TzfJnporan1w\ndeObMasG6Gn41WCwxKihup10rgoaM1QKXG/LHHBDATXaex6q7dV/Tmw74GQx\ntFCCwqf2xoQql+ChGHMpSHIRkkSIuSB6WB0CgOXrjvsN2Nh2qOAye3Bj57jJ\ncj68\r\n=Vngr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtrTrUrwlloiDzieWWh28NXFqrh8b8GZC86P0MTq0rFAiB7QF0ILP7/+0YgEKXXz2b+3+myvkUch9GXfXKHqiRrIQ=="}]},"maintainers":[{"name":"anhdayem818","email":"anhdayem818@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capture_electron_0.0.2_1547778464016_0.08780508066786874"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-18T02:00:51.822Z","0.0.1":"2019-01-18T02:00:52.174Z","modified":"2022-04-04T14:10:29.318Z","0.0.2":"2019-01-18T02:27:44.205Z"},"maintainers":[{"name":"anhdayem818","email":"anhdayem818@gmail.com"}],"description":"Capture screenshots using electron ( fork from juliangruber )","homepage":"https://github.com/juliangruber/capture-electron","keywords":["electron","screenshot","headless"],"repository":{"type":"git","url":"git://github.com/juliangruber/capture-electron.git"},"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"bugs":{"url":"https://github.com/juliangruber/capture-electron/issues"},"license":"MIT","readme":"# capture-electron\n\nCapture screenshots using [electron](http://electron.atom.io/).\n\n[![build status](https://secure.travis-ci.org/juliangruber/capture-electron.png)](http://travis-ci.org/juliangruber/capture-electron)\n\n## Features\n\n- Promise and Stream interfaces\n- Configurable Viewport\n- Waits for `DOMContentLoaded`\n- File formats `png`, `jpg` and `bmp`\n\n## Example\n\nCapture a `800x600` screenshot of [github.com](http://github.com):\n\n```js\nconst capture = require('capture-electron')\nconst fs = require('fs')\n\ncapture({\n  url: 'https://github.com/',\n  width: 800,\n  height: 600\n}).then(screenshot => {\n  fs.writeFileSync(`${__dirname}/example.png`, screenshot)\n  console.log('open example.png')\n})\n```\n\n![github.com](https://raw.github.com/juliangruber/capture-electron/master/example.png)\n\n## API\n\n### screenshot({ url, width = 1024, height = 768, wait = 0, format = 'png' })\n\nCapture a screenshot of `url`, returns a `Promise` which resolves with a buffer.\n\nOptions:\n\n- `url` Page url\n- `width` Viewport width\n- `height` Viewport height\n- `wait` Time in `ms` to wait after the `DOMContentLoaded` event\n- `format` File format (`png`, `jpg`, `bmp`)\n\n### screenshot.stream(options)\n\nTakes the same options as above, but returns a stream instead.\n\nExample:\n\n```js\ncapture\n  .stream({\n    url: 'https://github.com/',\n    width: 800,\n    height: 600\n  })\n  .pipe(fs.createWriteStream(`${__dirname}/example-stream.png`))\n  .on('close', () => console.log('open example-stream.png'))\n```\n\n## Installation\n\nWith [npm](https://npmjs.org) do:\n\n```bash\nnpm install capture-electron\n```\n\n## CI\n\nThis project requires an `xvfb` setup to be running in your CI environment.\nFor an example how to set one up, check out the [.travis.yml](https://github.com/juliangruber/capture-electron/blob/master/.travis.yml).\nAfter that, no further setup is required however, as the electron executable is\ninstalled automatically.\n\n## Related projects\n\n- __[capture-screenshot](https://github.com/juliangruber/capture-screenshot)__ &mdash; Capture screenshots in multiple browsers\n- __[capture-chrome](https://github.com/juliangruber/capture-chrome)__ &mdash; Capture screenshots using Chrome\n- __[capture-phantomjs](https://github.com/juliangruber/capture-phantomjs)__ &mdash; Capture screenshots using PhantomJS\n\n## Sponsors\n\nThis module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!\n\nDo you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!\n\n## License\n\n(MIT)\n\nCopyright (c) 2017 Julian Gruber &lt;julian@juliangruber.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md"}