{"id":16092455,"url":"https://github.com/bukinoshita/toggle-hotplug","last_synced_at":"2026-01-11T17:53:40.287Z","repository":{"id":44121763,"uuid":"107183277","full_name":"bukinoshita/toggle-hotplug","owner":"bukinoshita","description":"Toggle macOS Sierra hotplug on and off","archived":false,"fork":false,"pushed_at":"2023-01-04T21:50:35.000Z","size":155,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T00:03:02.677Z","etag":null,"topics":["hot","hotplug","image","mac","macos","photos","plug","sierra"],"latest_commit_sha":null,"homepage":"","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/bukinoshita.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-10-16T21:09:26.000Z","updated_at":"2019-12-16T18:17:38.000Z","dependencies_parsed_at":"2023-02-02T21:15:41.385Z","dependency_job_id":null,"html_url":"https://github.com/bukinoshita/toggle-hotplug","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Ftoggle-hotplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Ftoggle-hotplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Ftoggle-hotplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Ftoggle-hotplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bukinoshita","download_url":"https://codeload.github.com/bukinoshita/toggle-hotplug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246786554,"owners_count":20833710,"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":["hot","hotplug","image","mac","macos","photos","plug","sierra"],"created_at":"2024-10-09T16:08:35.965Z","updated_at":"2026-01-11T17:53:40.234Z","avatar_url":"https://github.com/bukinoshita.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toggle-hotplug [![Build Status](https://travis-ci.org/bukinoshita/toggle-hotplug.svg?branch=master)](https://travis-ci.org/bukinoshita/toggle-hotplug)\n\n\u003e Toggle macOS Sierra hotplug on and off\n\n_**Hotplug:** when you [plug your iPhone on your macbook and the Photos app automatically opens](https://twitter.com/bukinoshita/status/920089417494220801). `toggle-hotplug` can toggle this on and off._\n\n## Install\n\n```\n$ yarn add toggle-hotplug\n```\n\n\n## Usage\n\n```js\nconst { isOn, toggle } = require('toggle-hotplug')\n\nawait isOn()\n// =\u003e false\n\nawait toggle()\n// =\u003e true\n```\n\n\n## API\n\n### toggleHotplug\n\nAll methods return a `promise`\n\n#### isOn()\n\nReturns a Promise\u003cboolean\u003e of whether the hotplug is on.\n\n#### toggle()\n\nInverse the hotplug state.\n\n\n## Related\n\n- [toggle-hotplug-cli](https://github.com/bukinoshita/toggle-hotplug-cli) — CLI for this module\n\n\n## License\n\nMIT © [Bu Kinoshita](https://bukinoshita.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Ftoggle-hotplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbukinoshita%2Ftoggle-hotplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Ftoggle-hotplug/lists"}