{"id":20576633,"url":"https://github.com/hobbyquaker/persist-path","last_synced_at":"2025-04-14T18:22:44.238Z","repository":{"id":57322311,"uuid":"66935580","full_name":"hobbyquaker/persist-path","owner":"hobbyquaker","description":"Get OS-specific path to store persistent data :file_folder:","archived":false,"fork":false,"pushed_at":"2019-11-13T20:08:14.000Z","size":3,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T22:43:39.151Z","etag":null,"topics":["appdata","file","home","library","node-module","operating-system","os","path","persist","user"],"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/hobbyquaker.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":"2016-08-30T11:43:28.000Z","updated_at":"2023-09-08T17:14:15.000Z","dependencies_parsed_at":"2022-08-25T21:01:31.025Z","dependency_job_id":null,"html_url":"https://github.com/hobbyquaker/persist-path","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Fpersist-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Fpersist-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Fpersist-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Fpersist-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hobbyquaker","download_url":"https://codeload.github.com/hobbyquaker/persist-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933716,"owners_count":21185531,"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":["appdata","file","home","library","node-module","operating-system","os","path","persist","user"],"created_at":"2024-11-16T05:46:30.754Z","updated_at":"2025-04-14T18:22:44.180Z","avatar_url":"https://github.com/hobbyquaker.png","language":"JavaScript","readme":"# persist-path\n\n[![NPM version](https://badge.fury.io/js/persist-path.svg)](http://badge.fury.io/js/persist-path)\n[![Dependency Status](https://img.shields.io/gemnasium/hobbyquaker/persist-path.svg?maxAge=2592000)](https://gemnasium.com/github.com/hobbyquaker/persist-path)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![License][mit-badge]][mit-url]\n\n\u003e Get OS-specific path to store persistent data\n\n## Usage\n\n```npm install persist-path```\n\n```Javascript\nvar ppath = require('persist-path')();\n```\n\n## OS-specific Paths\n\n### Linux/BSD\n\nIf you supply an argument to the required function call this will be appended as .dot directory.\n\nExample:\n```Javascript\nvar ppath = require('persist-path')('myproject/settings');\n\nconsole.log(ppath); // /home/\u003cusername\u003e/.myproject/settings\n```\n\n### macOS\n\nIf you supply an argument to the required function call this will be appended on Library/Preferences in the Users home\n\nExample:\n```Javascript\nvar ppath = require('persist-path')('myproject/settings');\n\nconsole.log(ppath); // /Users/\u003cusername\u003e/Library/Preferences/myproject/settings\n```\n\n### Windows\n\nIf you supply an argument to the required function call this will be appended on Users %appdata% dir\n\n# License\n\nMIT (c) 2016 [Sebastian Raff](https://github.com/hobbyquaker)\n\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat\n[mit-url]: LICENSE\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobbyquaker%2Fpersist-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhobbyquaker%2Fpersist-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobbyquaker%2Fpersist-path/lists"}