{"id":13563689,"url":"https://github.com/inconshreveable/mousetrap","last_synced_at":"2025-05-15T11:08:47.605Z","repository":{"id":16388109,"uuid":"19138780","full_name":"inconshreveable/mousetrap","owner":"inconshreveable","description":"Detect starting from Windows explorer","archived":false,"fork":false,"pushed_at":"2022-11-29T17:47:50.000Z","size":17,"stargazers_count":250,"open_issues_count":2,"forks_count":35,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T23:59:45.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inconshreveable.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":"2014-04-25T08:06:10.000Z","updated_at":"2025-05-12T02:56:31.000Z","dependencies_parsed_at":"2023-01-13T18:49:21.588Z","dependency_job_id":null,"html_url":"https://github.com/inconshreveable/mousetrap","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconshreveable%2Fmousetrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconshreveable%2Fmousetrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconshreveable%2Fmousetrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconshreveable%2Fmousetrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inconshreveable","download_url":"https://codeload.github.com/inconshreveable/mousetrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043843,"owners_count":22005025,"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":[],"created_at":"2024-08-01T13:01:22.284Z","updated_at":"2025-05-15T11:08:47.585Z","avatar_url":"https://github.com/inconshreveable.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# mousetrap\n\nmousetrap is a tiny library that answers a single question.\n\nOn a Windows machine, was the process invoked by someone double clicking on\nthe executable file while browsing in explorer?\n\n### Motivation\n\nWindows developers unfamiliar with command line tools will often \"double-click\"\nthe executable for a tool. Because most CLI tools print the help and then exit\nwhen invoked without arguments, this is often very frustrating for those users.\n\nmousetrap provides a way to detect these invocations so that you can provide\nmore helpful behavior and instructions on how to run the CLI tool. To see what\nthis looks like, both from an organizational and a technical perspective, see\nhttps://inconshreveable.com/09-09-2014/sweat-the-small-stuff/\n\n### The interface\n\nThe library exposes a single interface:\n\n    func StartedByExplorer() (bool)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finconshreveable%2Fmousetrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finconshreveable%2Fmousetrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finconshreveable%2Fmousetrap/lists"}