{"_id":"@bokaderohit98/screenshot-desktop","_rev":"2-f3b89b53bc94c775be51cf8fa391af64","name":"@bokaderohit98/screenshot-desktop","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bokaderohit98/screenshot-desktop","version":"1.0.0","description":"Capture a screenshot of your local machine","main":"index.js","dependencies":{"pinkie-promise":"^2.0.1","temp":"^0.9.4"},"devDependencies":{"ava":"^3.15.0","semantic-release":"^18.0.0","standard":"^16.0.4"},"ava":{"timeout":"1m"},"scripts":{"test":"ava","semantic-release":"semantic-release","lint":"standard"},"repository":{"type":"git","url":"git+https://github.com/bokaderohit98/screenshot-desktop.git"},"keywords":["screenshot","screengrab","screen","desktop","laptop","x11"],"author":{"name":"Rohit Bokade"},"license":"MIT","bugs":{"url":"https://github.com/bokaderohit98/screenshot-desktop/issues"},"homepage":"https://github.com/bokaderohit98/screenshot-desktop#readme","gitHead":"769dec94a0dff07e1bf2a5d249f6f8067b164a64","_id":"@bokaderohit98/screenshot-desktop@1.0.0","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-g26AX0340+XKg8E1v85rZatchMeRfT625MJJ6OtqR/NqLrfsjvBk/9x5NSTErjjmJC9FGH3l/LIQw72T4abxGA==","shasum":"493988431a4d83097d69e9085f62d97cd293eac0","tarball":"https://registry.npmjs.org/@bokaderohit98/screenshot-desktop/-/screenshot-desktop-1.0.0.tgz","fileCount":18,"unpackedSize":38880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzZY+CRA9TVsSAnZWagAA3uUP/isXBn/AA4rBduhwIMld\n29atdRqx3LQ/qV0/DIYpKyook9OfN8N5O7pYGuEGayit9LsS+cQDksVJZ+dg\nTtdPynMkvZEG+q+3jyhIkxr1PSQfFiaznnI23M6IGiZsjkVYnDrqQICgqaPD\nbdv6HPu3PpEr0JSTjGyhuN8ydaOqbvDcAK19tVVzyMj7pEYK9aGF5rhgbXKK\nW9fuyopA/x8eGEv0rqlyyCPki7lHc3Q/qmsMGm02Ora0iG30ubXjsFk/m2MX\nTPEvl8ul9S+E0j3yKODr/sxkBLH+1Gecw7iEOr/714hWe6xg/E6ewR5JULr9\nPK6u4WJaBISuFd0PqqXw4e9Pr6T7T1xjQVez8CrHzJvDQqnyoHr6EwYewiE/\nNn1GOvhHFHbRqfAjlw750HMlvWI27Q9Vl6SKlN6RBRitMU+SZ+NUiWeCHJmt\nVp79kQjnBMhxC3MKOrvMYQ7MFGctHifLa4+kvWALk+tQWJlyetteDcVKZgrT\n2np7N/syG7lFabp+whdjsuVZmlopQ2N2H+PopBFl5LmaNYeEllf24wUcmmpM\nv5xU99f7OZfWbKiSHdH1iSrT6CtQXrxLS9M3mKzVWv+cQa5K/B0q6uQjT2F6\n1PE6N39QIbtcHXu3ZM90Jz9Q8l2XBSuNF2CrdW20Mdp789Y3SJqt1q54LmHE\nxkVu\r\n=7wbm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgjVyWpOdY11/QJLC0oFrRf56ygk629uOJpK1HM9p4CwIgEM4Vmtu0xjmZw9/RVMXkOiVnp/ZhN6YsLmQ04nIPN74="}]},"_npmUser":{"name":"bokaderohit98","email":"bokaderohit98@gmail.com"},"directories":{},"maintainers":[{"name":"bokaderohit98","email":"bokaderohit98@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screenshot-desktop_1.0.0_1635335939735_0.5569111684631349"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-27T11:58:59.695Z","1.0.0":"2021-10-27T11:58:59.882Z","modified":"2022-04-04T19:59:22.392Z"},"maintainers":[{"name":"bokaderohit98","email":"bokaderohit98@gmail.com"}],"description":"Capture a screenshot of your local machine","homepage":"https://github.com/bokaderohit98/screenshot-desktop#readme","keywords":["screenshot","screengrab","screen","desktop","laptop","x11"],"repository":{"type":"git","url":"git+https://github.com/bokaderohit98/screenshot-desktop.git"},"author":{"name":"Rohit Bokade"},"bugs":{"url":"https://github.com/bokaderohit98/screenshot-desktop/issues"},"license":"MIT","readme":"# screenshot-desktop\n\n> Capture a screenshot of your local machine\n\n* Multi/Cross Platform\n  * Linux: required ImageMagick `apt-get install imagemagick`\n  * OSX: No dependencies required!\n  * Windows: No dependencies required!\n* Promise based API\n* JPG output (by default)\n\n## Install\n\n    $ npm install --save screenshot-desktop\n\n## Usage\n\n```js\nconst screenshot = require('screenshot-desktop')\n\nscreenshot().then((img) => {\n  // img: Buffer filled with jpg goodness\n  // ...\n}).catch((err) => {\n  // ...\n})\n```\n\n```js\nconst screenshot = require('screenshot-desktop')\n\nscreenshot({format: 'png'}).then((img) => {\n  // img: Buffer filled with png goodness\n  // ...\n}).catch((err) => {\n  // ...\n})\n```\n\n```js\nscreenshot.listDisplays().then((displays) => {\n  // displays: [{ id, name }, { id, name }]\n  screenshot({ screen: displays[displays.length - 1].id })\n    .then((img) => {\n      // img: Buffer of screenshot of the last display\n    });\n})\n```\n\n```js\nscreenshot.all().then((imgs) => {\n  // imgs: an array of Buffers, one for each screen\n})\n```\n\n```js\nscreenshot({ filename: 'shot.jpg' }).then((imgPath) => {\n  // imgPath: absolute path to screenshot\n  // created in current working directory named shot.png\n});\n\n// absolute paths work too. so do pngs\nscreenshot({ filename: '/Users/brian/Desktop/demo.png' })\n```\n\n## screenshot() options\n\n- `filename` Optional. Absolute or relative path to save output.\n- `format` Optional. Valid values `png|jpg`. \n- `linuxLibrary` Optional. Linux only. Valid values `scrot|imagemagick`. Which library to use. Note that scrot does not support format or screen selection.\n\n## Licence\n\nMIT &copy; [Ben Evans](https://bencevans.io)\n","readmeFilename":"README.md"}