{"id":15647425,"url":"https://github.com/linusu/node-application-config","last_synced_at":"2025-05-08T21:45:27.147Z","repository":{"id":25137568,"uuid":"28559720","full_name":"LinusU/node-application-config","owner":"LinusU","description":"🔧 Store config for your node applications","archived":false,"fork":false,"pushed_at":"2023-01-06T14:17:08.000Z","size":25,"stargazers_count":44,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T20:02:46.236Z","etag":null,"topics":[],"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/LinusU.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-12-28T10:54:40.000Z","updated_at":"2024-01-09T10:26:09.000Z","dependencies_parsed_at":"2023-01-14T02:11:38.660Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-application-config","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-application-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-application-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-application-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-application-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-application-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154347,"owners_count":21862506,"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-10-03T12:19:24.332Z","updated_at":"2025-05-08T21:45:27.089Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Application Config\n\nStore your applications config where the operating system wants you to.\n\n## Installation\n\n```sh\nnpm install --save application-config\n```\n\n## Usage\n\n```js\nimport createApplicationConfig from 'application-config'\n\nconst cfg = createApplicationConfig('App Name')\n\n// Read the stored data\nconst data = await cfg.read()\n\n// Write new config\nawait cfg.write({ n: 1337 })\n\n// Trash the stored config\nawait cfg.trash()\n```\n\n## API\n\n### `createApplicationConfig(name)`\n\nCreates and return a new instance with the provided name.\n\n### `cfg.read()`\n\nRead the stored configuration. Returns a Promise that settles with the data.\n\n### `cfg.write(data)`\n\nWrite new configuration. Returns a Promise.\n\n### `cfg.trash()`\n\nRemove the stored configuration. Returns a Promise.\n\n### `cfg.filePath`\n\nThe path to the underlying file in which the configuration is stored.\n\n## Config location\n\nPlatform | Location\n--- | ---\nOS X | `~/Library/Application Support/\u003cname\u003e/config.json`\nLinux (XDG) | `$XDG_CONFIG_HOME/\u003cname\u003e/config.json`\nLinux (Legacy) | `~/.config/\u003cname\u003e/config.json`\nWindows (\u003e Vista) | `%LOCALAPPDATA%/\u003cname\u003e/config.json`\nWindows (XP, 2000) | `%USERPROFILE%/Local Settings/Application Data/\u003cname\u003e/config.json`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-application-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-application-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-application-config/lists"}