{"id":15084988,"url":"https://github.com/justjavac/deno_document_dir","last_synced_at":"2026-02-17T07:33:51.929Z","repository":{"id":62421639,"uuid":"288757222","full_name":"justjavac/deno_document_dir","owner":"justjavac","description":"Returns the path to the user's document directory.","archived":false,"fork":false,"pushed_at":"2022-11-04T08:47:07.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-17T01:41:40.048Z","etag":null,"topics":["deno","deno-module","deno-starter","dir","document","path"],"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-19T14:40:47.000Z","updated_at":"2022-11-06T13:19:29.000Z","dependencies_parsed_at":"2023-01-21T01:16:45.503Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_document_dir","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"justjavac/deno_starter","purl":"pkg:github/justjavac/deno_document_dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_document_dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_document_dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_document_dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_document_dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_document_dir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_document_dir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017499,"owners_count":26086085,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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-module","deno-starter","dir","document","path"],"created_at":"2024-09-25T07:01:02.771Z","updated_at":"2025-10-14T01:42:07.731Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_document_dir\n\nReturns the path to the user's document 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_DOCUMENTS_DIR`      | /home/justjavac/Documents    |\n| macOS    | `$HOME`/Documents        | /Users/justjavac/Documents   |\n| Windows  | `$USERPROFILE`/Documents | C:\\Users\\justjavac\\Documents |\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 documentDir from \"https://deno.land/x/document_dir/mod.ts\";\n\ndocumentDir();\n// Lin: \"/home/justjavac/Documents\"\n// Mac: \"/Users/justjavac/Documents\"\n// Win: \"C:\\Users\\justjavac\\Documents\"\n```\n\n## License\n\n[deno_document_dir](https://github.com/justjavac/deno_document_dir) is released\nunder 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_document_dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_document_dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_document_dir/lists"}