https://github.com/bencevans/screenshot-desktop
💻 Capture a screenshot of your local machine
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
â—‹CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
â—‹DOI references
-
â—‹Academic publication links
-
â—‹Committers with academic emails
-
â—‹Institutional organization owner
-
â—‹JOSS paper metadata
-
â—‹Scientific vocabulary similarity
Low similarity (6.7%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
💻 Capture a screenshot of your local machine
Basic Info
- Host: GitHub
- Owner: bencevans
- Language: JavaScript
- Default Branch: main
- Homepage: https://www.npmjs.com/package/screenshot-desktop
- Size: 1.65 MB
Statistics
- Stars: 477
- Watchers: 10
- Forks: 97
- Open Issues: 22
- Releases: 28
Topics
Metadata Files
README.md
screenshot-desktop
Capture a screenshot of your local machine
- Multi/Cross Platform
- Linux: required ImageMagick
apt-get install imagemagick - OSX: No dependencies required!
- Windows: No dependencies required!
- Linux: required ImageMagick
- Promise based API
- JPG output (by default)
Install
$ npm install --save screenshot-desktop
Usage
```js const screenshot = require('screenshot-desktop')
screenshot().then((img) => { // img: Buffer filled with jpg goodness // ... }).catch((err) => { // ... }) ```
```js const screenshot = require('screenshot-desktop')
screenshot({format: 'png'}).then((img) => { // img: Buffer filled with png goodness // ... }).catch((err) => { // ... }) ```
js
screenshot.listDisplays().then((displays) => {
// displays: [{ id, name }, { id, name }]
screenshot({ screen: displays[displays.length - 1].id })
.then((img) => {
// img: Buffer of screenshot of the last display
});
})
js
screenshot.all().then((imgs) => {
// imgs: an array of Buffers, one for each screen
})
```js screenshot({ filename: 'shot.jpg' }).then((imgPath) => { // imgPath: absolute path to screenshot // created in current working directory named shot.png });
// absolute paths work too. so do pngs screenshot({ filename: '/Users/brian/Desktop/demo.png' }) ```
screenshot() options
filenameOptional. Absolute or relative path to save output.formatOptional. Valid valuespng|jpg.linuxLibraryOptional. Linux only. Valid valuesscrot|imagemagick. Which library to use. Note that scrot does not support format or screen selection.
Licence
MIT © Ben Evans
Owner
- Name: Ben Evans
- Login: bencevans
- Kind: user
- Location: London, UK
- Company: Institute of Zoology, ZSL
- Website: https://bencevans.io/
- Twitter: bencevans
- Repositories: 282
- Profile: https://github.com/bencevans
GitHub Events
Total
- Create event: 7
- Release event: 1
- Issues event: 4
- Watch event: 38
- Delete event: 3
- Issue comment event: 4
- Push event: 15
- Pull request event: 17
- Fork event: 7
Last Year
- Create event: 7
- Release event: 1
- Issues event: 4
- Watch event: 38
- Delete event: 3
- Issue comment event: 4
- Push event: 15
- Pull request event: 17
- Fork event: 7
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Renovate Bot | b****t@r****m | 86 |
| Ben Evans | b****n@b****o | 81 |
| dependabot[bot] | 4****] | 31 |
| depfu[bot] | 2****] | 30 |
| renovate[bot] | r****] | 9 |
| tai2 | h****o@t****t | 5 |
| Brian Schiller | b****r@g****m | 4 |
| Blatoy | l****t@g****m | 2 |
| Viktor Yarmolenko | v****o@b****k | 1 |
| zhanggang | z****g@c****m | 1 |
| BigSteel | 1****3@q****m | 1 |
| Chinafreak | 1****k | 1 |
| Dan Gilkerson | c****t@d****m | 1 |
| Elliott Partridge | e****e@g****m | 1 |
| Hiroko Tamagawa | n****5 | 1 |
| Levi Nunnink | l****i@c****m | 1 |
| Manuel Roat | r****l@g****m | 1 |
| Marcin Cichocki | m****3@g****m | 1 |
| Milan Raj | r****e | 1 |
| Nicolas Newman | n****6@g****m | 1 |
| Peter Holló | l****r@g****m | 1 |
| Simon Smith | s****1@g****m | 1 |
| Ties | t****k@g****m | 1 |
| Tim Greller | t****7@g****m | 1 |
| pityulin | p****n@g****m | 1 |
| radar155 | g****3@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 41
- Total pull requests: 102
- Average time to close issues: 2 months
- Average time to close pull requests: about 1 month
- Total issue authors: 39
- Total pull request authors: 13
- Average comments per issue: 2.98
- Average comments per pull request: 0.46
- Merged pull requests: 85
- Bot issues: 0
- Bot pull requests: 73
Past Year
- Issues: 3
- Pull requests: 15
- Average time to close issues: 5 days
- Average time to close pull requests: 3 days
- Issue authors: 3
- Pull request authors: 5
- Average comments per issue: 0.0
- Average comments per pull request: 0.2
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 8
Top Authors
Issue Authors
- samantrader (3)
- rishabhrpg (1)
- markosole (1)
- udarrr (1)
- AlexEmerson (1)
- rufus-codeb (1)
- Askelardd (1)
- NirmanSonawane (1)
- r-shafi (1)
- JSteunou (1)
- blockchain-expert (1)
- jattinb (1)
- byfareska (1)
- Azperin (1)
- andrewschreiber (1)
Pull Request Authors
- dependabot[bot] (45)
- depfu[bot] (34)
- bencevans (15)
- valueerrorx (2)
- andrew1931 (2)
- mrtumnus (2)
- briancullinan2 (2)
- pityulin (2)
- gauthier-th (2)
- redek91 (1)
- si458 (1)
- marcincichocki (1)
- Mindar (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 7
-
Total downloads:
- npm 176,696 last-month
-
Total dependent packages: 60
(may contain duplicates) -
Total dependent repositories: 218
(may contain duplicates) - Total versions: 53
- Total maintainers: 7
- Total advisories: 1
npmjs.org: screenshot-desktop
Capture a screenshot of your local machine
- Homepage: https://github.com/bencevans/screenshot-desktop#readme
- License: MIT
-
Latest release: 1.15.2
published 6 months ago
Rankings
Maintainers (1)
Funding
- type: github: url: https://github.com/sponsors/bencevans
npmjs.org: akey-screenshot-desktop
Capture a screenshot of your local machine
- Homepage: https://github.com/bencevans/screenshot-desktop#readme
- License: MIT
-
Latest release: 2.0.2
published over 2 years ago
Rankings
Maintainers (1)
Funding
- type: github: url: https://github.com/sponsors/bencevans
npmjs.org: farateam-screenshot-desktop
Capture a screenshot of your local machine
- Homepage: https://github.com/bencevans/screenshot-desktop#readme
- License: MIT
-
Latest release: 1.3.2
published almost 4 years ago
Rankings
Maintainers (1)
Funding
- type: github: url: https://github.com/sponsors/bencevans
npmjs.org: rpi-screenshot
Capture a screenshot of your local machine
- Homepage: https://github.com/bencevans/screenshot-desktop#readme
- License: MIT
-
Latest release: 1.0.2-development
published over 6 years ago
Rankings
Maintainers (1)
npmjs.org: screenshot-desktop-loongson
Capture a screenshot of your local machine, Edit for loongson(龙芯)
- Homepage: https://github.com/bencevans/screenshot-desktop
- License: MIT
-
Latest release: 1.9.0
published over 6 years ago
Rankings
Maintainers (1)
npmjs.org: rbx-handler
Capture a screenshot of your local machine
- Homepage: https://github.com/bencevans/screenshot-desktop#readme
- License: MIT
-
Latest release: 1.15.0
published about 1 year ago
Rankings
Maintainers (1)
Funding
- type: github: url: https://github.com/sponsors/bencevans
npmjs.org: screenshot-desktop-wayland
Capture a screenshot of your local machine
- Homepage: https://github.com/valueerrorx/screenshot-desktop-wayland#readme
- License: MIT
-
Latest release: 1.15.3
published over 1 year ago
Rankings
Maintainers (1)
Funding
- type: github: url: https://github.com/valueerrorx/
Dependencies
- GabrielBB/xvfb-action v1 composite
- actions/checkout v2 composite
- actions/setup-node v1 composite
- GabrielBB/xvfb-action v1 composite
- actions/checkout v2 composite
- actions/setup-node v1 composite
- actions/checkout v2 composite
- actions/setup-node v2 composite
- 683 dependencies
- ava ^5.0.1 development
- semantic-release ^19.0.5 development
- standard ^17.0.0 development
- pinkie-promise ^2.0.1
- temp ^0.9.4