{"id":13475065,"url":"https://github.com/atom/autosave","last_synced_at":"2025-03-26T22:31:46.060Z","repository":{"id":11474142,"uuid":"13942494","full_name":"atom/autosave","owner":"atom","description":"Autosaves buffers when they lose focus","archived":true,"fork":false,"pushed_at":"2022-09-28T10:52:01.000Z","size":98,"stargazers_count":63,"open_issues_count":17,"forks_count":29,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-10-30T08:51:20.606Z","etag":null,"topics":[],"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/atom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-29T00:28:59.000Z","updated_at":"2024-08-02T02:19:02.000Z","dependencies_parsed_at":"2023-01-11T18:07:20.584Z","dependency_job_id":null,"html_url":"https://github.com/atom/autosave","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fautosave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fautosave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fautosave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fautosave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atom","download_url":"https://codeload.github.com/atom/autosave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747949,"owners_count":20665896,"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-07-31T16:01:17.065Z","updated_at":"2025-03-26T22:31:45.220Z","avatar_url":"https://github.com/atom.png","language":"JavaScript","readme":"##### Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our [official announcement](https://github.blog/2022-06-08-sunsetting-atom/)\n # Autosave package\n[![OS X Build Status](https://travis-ci.org/atom/autosave.svg?branch=master)](https://travis-ci.org/atom/autosave) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/3aktr9updp722fqx/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/autosave/branch/master) [![Dependency Status](https://david-dm.org/atom/autosave.svg)](https://david-dm.org/atom/autosave)\n\nAutosaves editor when they lose focus, are destroyed, or when the window is closed.\n\nThis package is disabled by default and can be enabled via the `autosave.enabled` config\nsetting or by checking *Enabled* in the settings for the *autosave* package in the\nSettings view.\n\n## Service API\nThe service exposes an object with a function `dontSaveIf`, which accepts a callback.\nCallbacks will be invoked with each pane item eligible for an autosave and if the callback\nreturns true, the item will be skipped.\n\n### Usage\n\n#### package.json\n``` json\n\"consumedServices\": {\n  \"autosave\": {\n    \"versions\": {\n      \"1.0.0\": \"consumeAutosave\"\n    }\n  }\n}\n```\n\n#### package initialize\n``` javascript\nconsumeAutosave({dontSaveIf}) {\n  dontSaveIf(paneItem -\u003e paneItem.getPath() === '/dont/autosave/me.coffee')\n}\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Fautosave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatom%2Fautosave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Fautosave/lists"}