{"id":13827850,"url":"https://github.com/tommoor/electron-lets-move","last_synced_at":"2025-07-09T05:30:42.194Z","repository":{"id":57221742,"uuid":"76148553","full_name":"tommoor/electron-lets-move","owner":"tommoor","description":"Automatically move Electron apps to the Applications directory","archived":true,"fork":false,"pushed_at":"2017-11-29T23:41:14.000Z","size":14,"stargazers_count":178,"open_issues_count":6,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-13T07:31:13.613Z","etag":null,"topics":["electron","macos"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tommoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-11T01:58:20.000Z","updated_at":"2023-02-02T08:27:09.000Z","dependencies_parsed_at":"2022-08-29T04:10:15.675Z","dependency_job_id":null,"html_url":"https://github.com/tommoor/electron-lets-move","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommoor%2Felectron-lets-move","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommoor%2Felectron-lets-move/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommoor%2Felectron-lets-move/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommoor%2Felectron-lets-move/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tommoor","download_url":"https://codeload.github.com/tommoor/electron-lets-move/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225486447,"owners_count":17481903,"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":["electron","macos"],"created_at":"2024-08-04T09:02:15.455Z","updated_at":"2024-11-20T07:31:12.115Z","avatar_url":"https://github.com/tommoor.png","language":"JavaScript","readme":"**This functionality is now baked into Electron and the project is archived. I suggest using the [new native API](https://github.com/electron/electron/blob/c0e9dbcc0081aec773016cd08a759929536aaae4/docs/api/app.md#appisinapplicationsfolder-macos).**\n\n[![npm version](https://badge.fury.io/js/electron-lets-move.svg)](https://badge.fury.io/js/electron-lets-move)\n\n# Electron LetsMove\n\nA module that offers to automatically move your Electron app to the Applications\nfolder if opened from another location. Inspired by [LetsMove](https://github.com/potionfactory/LetsMove) for MacOS.\n\n![Electron LetsMove](https://cloud.githubusercontent.com/assets/380914/21082066/31881d30-bf88-11e6-8110-9526168eb95b.png)\n\n## Requirements\n\nThis module is designed to be used within Electron on macOS, it can be included in a cross platform Electron app and is a no-op on the Windows and Linux platforms.\n\n\n## Installation\n\n`npm install --save electron-lets-move`\n\n\n## Usage\n\nYou should call the `moveToApplications` method as soon as possible after the app\nready event in the main process. Ideally before the user has any chance to interact\nwith the application.\n\n`moveToApplications` returns a promise that will resolve when the application is\nin the correct location, the user asked not to move or an error occurred. You can\nalso provide an optional node-style callback as the only parameter.\n\n\n### ES5\n```javascript\nconst {app} = require('electron');\nconst {moveToApplications} = require('electron-lets-move');\n\napp.on('ready', function() {\n  moveToApplications(function(err, moved) {\n    if (err) {\n      // log error, something went wrong whilst moving the app.\n    }\n    if (!moved) {\n      // the user asked not to move the app, it's up to the parent application\n      // to store this information and not hassle them again.\n    }\n\n    // do the rest of your application startup\n  });\n});\n```\n\n### ES6\n```javascript\nimport {app} from 'electron';\nimport {moveToApplications} from 'electron-lets-move';\n\napp.on('ready', async () =\u003e {\n  try {\n    const moved = await moveToApplications();\n    if (!moved) {\n      // the user asked not to move the app, it's up to the parent application\n      // to store this information and not hassle them again.\n    }\n  } catch (err) {\n    // log error, something went wrong whilst moving the app.\n  }\n\n  // do the rest of your application startup\n});\n```\n\n## License\n\nElectron LetsMove is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with it.\n[More Information](http://en.wikipedia.org/wiki/MIT_License)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommoor%2Felectron-lets-move","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftommoor%2Felectron-lets-move","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommoor%2Felectron-lets-move/lists"}