{"id":15297016,"url":"https://github.com/kuzat/screenshot-node","last_synced_at":"2025-06-27T17:33:48.463Z","repository":{"id":50666887,"uuid":"84993914","full_name":"Kuzat/screenshot-node","owner":"Kuzat","description":"Takes a screenshot of selected area and saves it to disk","archived":false,"fork":false,"pushed_at":"2020-06-24T08:42:54.000Z","size":23,"stargazers_count":23,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T07:36:59.866Z","etag":null,"topics":["cross-platform","linux","macos","screenshot","screenshot-node","windows"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kuzat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-14T20:26:21.000Z","updated_at":"2023-08-23T06:48:44.000Z","dependencies_parsed_at":"2022-08-25T23:12:24.544Z","dependency_job_id":null,"html_url":"https://github.com/Kuzat/screenshot-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuzat%2Fscreenshot-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuzat%2Fscreenshot-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuzat%2Fscreenshot-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuzat%2Fscreenshot-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kuzat","download_url":"https://codeload.github.com/Kuzat/screenshot-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788917,"owners_count":21161728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cross-platform","linux","macos","screenshot","screenshot-node","windows"],"created_at":"2024-09-30T19:14:21.207Z","updated_at":"2025-04-13T22:11:56.830Z","avatar_url":"https://github.com/Kuzat.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# screenshot-node [![npm](https://img.shields.io/npm/dt/screenshot-node.svg?style=flat-square)](https://www.npmjs.com/package/screenshot-node)\nTakes a screenshot of selected area and saves it to disk.\n\n# Linux, OS X and Windows all supported now.\n\n## Instalation\n```sh\n$ npm install screenshot-node\n```\n# Methods\ncall the module\n```javascript\nvar screenshot = require('screenshot-node');\n```\n### screenshot.saveScreenshot(x, y, width, height, path, callback)\n\n#### x, y\n##### Must be whole numbers.\nThe x and y coordinates for the top left corner of the picture.\n\n#### width, height\n##### Must be whole numbers.\nThe width and height of the screenshot in pixels.\n##### Set width and height as 0 to take a fullscreen screenshot\n\n#### path\n##### Must be a string\nThe path including name of the file you want the screenshot to be saved as.\n\n#### callback(err)\nA string with error message. Null if there are no error.\n\n#### example\nTakes a screenshot from top left corner that have a width and height of 100. Saves it in the current directory with the name \"image.png\".\n```javascript\nscreenshot.saveScreenshot(0, 0, 100, 100, \"image.png\", (err) =\u003e {\n    if(err) console.log(err);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzat%2Fscreenshot-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuzat%2Fscreenshot-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzat%2Fscreenshot-node/lists"}