{"id":15638606,"url":"https://github.com/justjavac/deno_is_unc_path","last_synced_at":"2026-05-11T07:05:57.989Z","repository":{"id":62421595,"uuid":"289796477","full_name":"justjavac/deno_is_unc_path","owner":"justjavac","description":"Whether the filepath is a windows UNC file path.","archived":false,"fork":false,"pushed_at":"2020-08-24T01:26:20.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T00:08:22.260Z","etag":null,"topics":["deno","deno-mod","deno-module","deno-modules","path","system","unc","windows"],"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-24T01:14:31.000Z","updated_at":"2020-12-01T07:20:21.000Z","dependencies_parsed_at":"2022-11-01T17:32:30.546Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_is_unc_path","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/justjavac%2Fdeno_is_unc_path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_is_unc_path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_is_unc_path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_is_unc_path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_is_unc_path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243553,"owners_count":20746311,"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","deno-mod","deno-module","deno-modules","path","system","unc","windows"],"created_at":"2024-10-03T11:22:11.829Z","updated_at":"2026-05-11T07:05:52.927Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_is_unc_path\n\n[![tag](https://img.shields.io/github/release/justjavac/deno_is_unc_path)](https://github.com/justjavac/deno_is_unc_path/releases)\n[![Build Status](https://github.com/justjavac/deno_is_unc_path/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_is_unc_path/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno_is_unc_path)](https://github.com/justjavac/deno_is_unc_path/blob/master/LICENSE)\n\nWhether the filepath is a windows [UNC](https://msdn.microsoft.com/en-us/library/gg465305.aspx) file path.\n\nABNF syntax:\n\n```plain\nUNC                = \"\\\\\" host-name \"\\\" share-name  [ \"\\\" object-name ]\n host-name          = \"[\" IPv6address \"]\" / IPv4address / reg-name  \n    ; IPv6address, IPv4address, and reg-name as specified in [RFC3986] \n share-name         = 1*80pchar\n pchar              = %x20-21 / %x23-29 / %x2D-2E / %x30-39 / %x40-5A / %x5E-7B / %x7D-FF  \n object-name        = *path-name [ \"\\\" file-name ]\n path-name          = 1*255pchar\n file-name          = 1*255fchar [ \":\" stream-name [ \":\" stream-type ] ]\n fchar              = %x20-21 / %x23-29 / %x2B-2E / %x30-39 / %x3B / %x3D / %x40-5B / %x5D-7B / %x7D-FF \n stream-name        = *schar\n schar              = %x01-2E / %x30-39 / %x3B-5B /%x5D-FF\n stream-type        = 1*schar\n ```\n\n## Usage\n\n```ts\nimport isUncPath from \"https://deno.land/x/is_unc_path/mod.ts\";\n\n// return `true`\nisUncPath('\\\\/foo/bar');\nisUncPath('\\\\\\\\foo/bar');\nisUncPath('\\\\\\\\foo\\\\admin$');\nisUncPath('\\\\\\\\foo\\\\admin$\\\\system32');\nisUncPath('\\\\\\\\foo\\\\temp');\nisUncPath('\\\\\\\\/foo/bar');\nisUncPath('\\\\\\\\\\\\/foo/bar');\n\n// return `false`\nisUncPath('/foo/bar');\nisUncPath('/');\nisUncPath('/foo');\nisUncPath('/foo/');\nisUncPath('c:');\nisUncPath('c:.');\nisUncPath('c:./');\nisUncPath('c:./file');\nisUncPath('c:/');\nisUncPath('c:/file');\n```\n\n## License\n\n[deno_is_unc_path](https://github.com/justjavac/deno_is_unc_path) 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_is_unc_path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_is_unc_path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_is_unc_path/lists"}