{"id":13548856,"url":"https://github.com/kevva/brightness","last_synced_at":"2025-04-09T13:06:46.486Z","repository":{"id":32507155,"uuid":"36088003","full_name":"kevva/brightness","owner":"kevva","description":"Change screen brightness","archived":false,"fork":false,"pushed_at":"2017-07-22T22:02:49.000Z","size":119,"stargazers_count":191,"open_issues_count":8,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T03:57:23.967Z","etag":null,"topics":["brightness","brightness-level","nodejs","screen-brightness"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kevva.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":"2015-05-22T18:13:09.000Z","updated_at":"2025-03-20T15:33:15.000Z","dependencies_parsed_at":"2022-07-17T22:00:30.685Z","dependency_job_id":null,"html_url":"https://github.com/kevva/brightness","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbrightness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbrightness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbrightness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbrightness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/brightness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045231,"owners_count":21038553,"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":["brightness","brightness-level","nodejs","screen-brightness"],"created_at":"2024-08-01T12:01:15.228Z","updated_at":"2025-04-09T13:06:46.467Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cimg width=\"360\" src=\"https://rawgit.com/kevva/brightness/master/media/logo.svg\" alt=\"brightness\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\u003c/h1\u003e\n\n\u003e Change the screen brightness\n\n\n## Install\n\n```\n$ npm install brightness\n```\n\n\n## Usage\n\n```js\nconst brightness = require('brightness');\n\nbrightness.get().then(level =\u003e {\n\tconsole.log(level);\n\t//=\u003e 0.5\n});\n\nbrightness.set(0.8).then(() =\u003e {\n\tconsole.log('Changed brightness to 80%');\n});\n```\n\n\n## API\n\n### .get()\n\nReturns a `Promise` with the current brightness level.\n\n### .set(level)\n\nSet brightness level.\n\n#### level\n\n*Required*\u003cbr\u003e\nType: `number`\n\nA number between `0` and `1`.\n\n\n## Related\n\n* [brightness-cli](https://github.com/kevva/brightness-cli) - CLI for this module\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fbrightness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Fbrightness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fbrightness/lists"}