{"id":15941360,"url":"https://github.com/justjavac/deno_template_dir","last_synced_at":"2026-06-20T12:32:31.871Z","repository":{"id":57675375,"uuid":"288765232","full_name":"justjavac/deno_template_dir","owner":"justjavac","description":"Returns the path to the user's template directory.","archived":false,"fork":false,"pushed_at":"2020-08-19T15:18:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-28T07:20:48.831Z","etag":null,"topics":["deno","deno-mod","deno-module","dir","path","system"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-08-19T15:13:25.000Z","updated_at":"2020-08-24T11:11:21.000Z","dependencies_parsed_at":"2022-09-26T18:11:33.836Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_template_dir","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"justjavac/deno_starter","purl":"pkg:github/justjavac/deno_template_dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_template_dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_template_dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_template_dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_template_dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_template_dir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_template_dir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34570534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","deno-mod","deno-module","dir","path","system"],"created_at":"2024-10-07T07:03:23.213Z","updated_at":"2026-06-20T12:32:31.835Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_template_dir\n\n[![tag](https://img.shields.io/github/release/justjavac/deno_template_dir)](https://github.com/justjavac/deno_template_dir/releases)\n[![Build Status](https://github.com/justjavac/deno_template_dir/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_template_dir/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno_template_dir)](https://github.com/justjavac/deno_template_dir/blob/master/LICENSE)\n[![](https://img.shields.io/badge/deno-v1.3-green.svg)](https://github.com/denoland/deno)\n\nReturns the path to the user's template directory.\n\nThe returned value depends on the operating system and is either a string,\ncontaining a value from the following table, or `null`.\n\n|Platform | Value                  | Example                                                        |\n| ------- | ---------------------- | -------------------------------------------------------------- |\n| Linux   | `XDG_TEMPLATES_DIR`    | /home/justjavac/Templates                                      |\n| macOS   | –                      | –                                                              |\n| Windows | `{FOLDERID_Templates}` | C:\\Users\\justjavac\\AppData\\Roaming\\Microsoft\\Windows\\Templates |\n\n## Usage\n\nRequires `allow-env` permission.\n\nReturns `null` if there is no applicable directory or if any other error occurs.\n\n```ts\nimport templateDir from \"https://deno.land/x/template_dir/mod.ts\";\n\ntemplateDir();\n// Lin: \"/home/justjavac/Templates\"\n// Mac: null\n// Win: \"C:\\Users\\justjavac\\AppData\\Roaming\\Microsoft\\Windows\\Templates\"\n```\n\n## License\n\n[deno_template_dir](https://github.com/justjavac/deno_template_dir) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_template_dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_template_dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_template_dir/lists"}