{"id":21832486,"url":"https://github.com/joecohens/electron-first-run","last_synced_at":"2025-04-14T07:21:17.732Z","repository":{"id":57221645,"uuid":"144341292","full_name":"joecohens/electron-first-run","owner":"joecohens","description":"Check if it's the first time an Electron App runs","archived":false,"fork":false,"pushed_at":"2020-07-07T04:04:43.000Z","size":12,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:02:08.814Z","etag":null,"topics":["electron","storage"],"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/joecohens.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":"2018-08-10T23:41:47.000Z","updated_at":"2023-06-24T14:43:47.000Z","dependencies_parsed_at":"2022-08-29T04:10:06.749Z","dependency_job_id":null,"html_url":"https://github.com/joecohens/electron-first-run","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joecohens%2Felectron-first-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joecohens%2Felectron-first-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joecohens%2Felectron-first-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joecohens%2Felectron-first-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joecohens","download_url":"https://codeload.github.com/joecohens/electron-first-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248775909,"owners_count":21159681,"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","storage"],"created_at":"2024-11-27T19:20:16.694Z","updated_at":"2025-04-14T07:21:17.699Z","avatar_url":"https://github.com/joecohens.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-first-run\n\n[![Build Status: Linux and macOS](https://travis-ci.org/joecohens/electron-first-run.svg?branch=master)](https://travis-ci.org/joecohens/electron-first-run) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/xsvax2qy6lao3y25?svg=true)](https://ci.appveyor.com/project/joecohens/electron-first-run/branch/master)\n\nCheck if it's the first time an Electron App runs.\n\nThis pacakge it's based on [first-run](https://github.com/sindresorhus/first-run) by [@sindresorhus](https://github.com/sindresorhus), keeping the API as a drop in replacement for Electron.\n\n## Install\n\n```\n$ npm install --save electron-first-run\nor\n$ yarn add --save electron-first-run\n```\n\n## Usage\n\n```js\n// main process\nconst firstRun = require('electron-first-run');\n\nconst isFirstRun = firstRun()\nconsole.log(isFirstRun);\n```\n\n## API\n\n### firstRun([options])\n\n#### options.name\n\nType: `string`\nDefault: `electron-app-first-run`\n\nName of the storage file (without extension).\n\nThis is useful if you want multiple storage files for your app. Or if you're making a reusable Electron module that persists some data, in which case you should not use the default name.\n\n### firstRun.clear()\n\nClear the state.\n\n## License\n\nMIT © [Joseph Cohen](http://joecohens.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoecohens%2Felectron-first-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoecohens%2Felectron-first-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoecohens%2Felectron-first-run/lists"}