{"id":15496042,"url":"https://github.com/lemarier/deno-env-paths","last_synced_at":"2026-05-12T12:41:57.636Z","repository":{"id":62420957,"uuid":"265921349","full_name":"lemarier/deno-env-paths","owner":"lemarier","description":"Get paths for storing things like data, config, cache, etc with Deno.","archived":false,"fork":false,"pushed_at":"2020-05-21T23:15:21.000Z","size":2,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T19:08:00.430Z","etag":null,"topics":["deno","environment-variables"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemarier.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":"2020-05-21T18:20:55.000Z","updated_at":"2021-01-29T01:10:23.000Z","dependencies_parsed_at":"2022-11-01T17:30:57.773Z","dependency_job_id":null,"html_url":"https://github.com/lemarier/deno-env-paths","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemarier%2Fdeno-env-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemarier%2Fdeno-env-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemarier%2Fdeno-env-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemarier%2Fdeno-env-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemarier","download_url":"https://codeload.github.com/lemarier/deno-env-paths/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068306,"owners_count":20718503,"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":["deno","environment-variables"],"created_at":"2024-10-02T08:21:49.895Z","updated_at":"2026-05-12T12:41:57.593Z","avatar_url":"https://github.com/lemarier.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# env-paths\n\nGet paths for storing things like data, config, cache, etc\n\n[![Test CI](https://github.com/lemarier/deno-env-paths/workflows/Test%20CI/badge.svg)](https://github.com//lemarier/deno-env-paths/actions)\n\n```ts\nimport envPaths from \"https://deno.land/x/env_paths/mod.ts\";\n\nconst paths = envPaths(\"MyApp\");\n\nconsole.log(paths.data);\n//=\u003e '/Users/david/Library/Application Support/MyApp-deno'\n\nconsole.log(paths.config);\n//=\u003e '/Users/david/Library/Preferences/MyApp-deno'\n```\n\n## API\n\n### paths = envPaths(name, options?)\n\nNote: It only generates the path strings. It doesn't create the directories for you.\n\n#### name\n\nType: `string`\n\nName of your project. Used to generate the paths.\n\n#### options\n\nType: `object`\n\n##### suffix\n\nType: `string`\u003cbr\u003e\nDefault: `'deno'`\n\n**Don't use this option unless you really have to!**\u003cbr\u003e\nSuffix appended to the project name to avoid name conflicts with native\napps.\n\n### paths.data\n\nDirectory for data files.\n\n### paths.config\n\nDirectory for config files.\n\n### paths.cache\n\nDirectory for non-essential data files.\n\n###\n\nDirectory for log files.\n\n### paths.temp\n\nDirectory for temporary files.\n\n---\n\nInspired by [env-paths](https://github.com/sindresorhus/env-paths) from [sindresorhus](https://github.com/sindresorhus).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemarier%2Fdeno-env-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemarier%2Fdeno-env-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemarier%2Fdeno-env-paths/lists"}