{"_id":"@builtbygio/autosave","name":"@builtbygio/autosave","dist-tags":{"latest":"0.24.8"},"versions":{"0.24.8":{"name":"@builtbygio/autosave","main":"./lib/autosave","version":"0.24.8","description":"Save editors when they lose focus or are closed","repository":{"type":"git","url":"git+https://github.com/atom/autosave.git"},"engines":{"atom":">0.27.0","chevron":"*"},"providedServices":{"autosave":{"description":"A configuration object to control what is autosaved","versions":{"1.0.0":"provideService"}}},"dependencies":{"fs-plus":"^3.0.0"},"devDependencies":{"standard":"^10.0.3"},"standard":{"ignore":["spec/fixtures"],"globals":["atom","describe","expect","beforeEach","jasmine","waitsForPromise","waitsFor","runs","spyOn","FocusEvent","it"]},"configSchema":{"enabled":{"type":"boolean","default":false}},"_id":"@builtbygio/autosave@0.24.8","bugs":{"url":"https://github.com/atom/autosave/issues"},"homepage":"https://github.com/atom/autosave#readme","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-5352IU/0zyZwNxvksP178uz2n4rvi1mfyRD9Bfe06u1tgsf1ahafzJ1LOTer7RdA0+uTh6zVekvcRL0z6y49ZA==","shasum":"ccd17c8fe4f62af8f12b34b90d0e605b6aa419f1","tarball":"https://registry.npmjs.org/@builtbygio/autosave/-/autosave-0.24.8.tgz","fileCount":11,"unpackedSize":9863,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA15Tup7+hqXyeeFqwvIPEs95vURHSqIE2jIpxW69UrtAiEAq1VP28QPx4im0vAiYffKIlCJ/TWuluCrCdV+6UNrCic="}]},"_npmUser":{"name":"giobuilds","email":"giova19@proton.me"},"directories":{},"maintainers":[{"name":"giobuilds","email":"giova19@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/autosave_0.24.8_1787781244926_0.9032607753037003"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-26T21:54:04.763Z","0.24.8":"2026-08-26T21:54:05.075Z","modified":"2026-08-26T21:54:05.399Z"},"maintainers":[{"name":"giobuilds","email":"giova19@proton.me"}],"description":"Save editors when they lose focus or are closed","homepage":"https://github.com/atom/autosave#readme","repository":{"type":"git","url":"git+https://github.com/atom/autosave.git"},"bugs":{"url":"https://github.com/atom/autosave/issues"},"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 -> paneItem.getPath() === '/dont/autosave/me.coffee')\n}\n```\n","readmeFilename":"README.md","_rev":"1-b4267543dadf8baaf49cb4b90c52b9d6"}