{"id":22514699,"url":"https://github.com/cityssm/node-windows-unc-path-connect","last_synced_at":"2026-02-15T04:33:59.722Z","repository":{"id":233617681,"uuid":"787527215","full_name":"cityssm/node-windows-unc-path-connect","owner":"cityssm","description":"Ensures a UNC path that requires a user name and password is ready to use in Windows before use.","archived":false,"fork":false,"pushed_at":"2024-12-27T16:39:33.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T00:57:06.974Z","etag":null,"topics":["file-share","node-fs","unc-path","windows"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cityssm/windows-unc-path-connect","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/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-16T17:36:24.000Z","updated_at":"2024-12-27T16:38:32.000Z","dependencies_parsed_at":"2025-07-09T14:43:45.284Z","dependency_job_id":"58e87593-9837-4e6c-a959-7726ed434213","html_url":"https://github.com/cityssm/node-windows-unc-path-connect","commit_stats":null,"previous_names":["cityssm/node-windows-unc-path-connect"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cityssm/node-windows-unc-path-connect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-windows-unc-path-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-windows-unc-path-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-windows-unc-path-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-windows-unc-path-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/node-windows-unc-path-connect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-windows-unc-path-connect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29469343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T04:33:36.478Z","status":"ssl_error","status_checked_at":"2026-02-15T04:33:36.033Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["file-share","node-fs","unc-path","windows"],"created_at":"2024-12-07T03:20:29.927Z","updated_at":"2026-02-15T04:33:59.718Z","avatar_url":"https://github.com/cityssm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows UNC Path Connect for Node\n\n[![npm (scoped)](https://img.shields.io/npm/v/%40cityssm/windows-unc-path-connect)](https://www.npmjs.com/package/@cityssm/windows-unc-path-connect)\n[![DeepSource](https://app.deepsource.com/gh/cityssm/node-windows-unc-path-connect.svg/?label=active+issues\u0026show_trend=true\u0026token=kMenIfdyEcHVDtebaPlgkjFy)](https://app.deepsource.com/gh/cityssm/node-windows-unc-path-connect/)\n[![codecov](https://codecov.io/gh/cityssm/node-windows-unc-path-connect/graph/badge.svg?token=37N29WMP5B)](https://codecov.io/gh/cityssm/node-windows-unc-path-connect)\n[![Coverage Testing](https://github.com/cityssm/node-windows-unc-path-connect/actions/workflows/coverage.yml/badge.svg)](https://github.com/cityssm/node-windows-unc-path-connect/actions/workflows/coverage.yml)\n\nEnsures a UNC path that requires a user name and password\nis ready to use in Windows before use.\n\n## Installation\n\n```sh\nnpm install @cityssm/windows-unc-path-connect\n```\n\n## Usage\n\n```javascript\nimport { connectToUncPath } from '@cityssm/windows-unc-path-connect'\n\nconst uncPath = '\\\\\\\\server\\\\fileShare'\n\n/*\n * Connect to share\n */\n\nconst success = connectToUncPath(\n  {\n    uncPath,\n    userName: 'user',\n    password: 'p@ss'\n  },\n  {\n    // Optionally attempt to clean up connection on application shutdown.\n    deleteOnExit: true,\n\n    // Optionally assign a drive letter.\n    driveLetter: 'M:',\n\n    // Optionally persist the connection after restart.\n    persistent: true\n  }\n)\n\n/*\n * Reading files should now work.\n */\n\ntry {\n  const files = await fs.readdir(uncPath)\n} catch (error) {}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-windows-unc-path-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fnode-windows-unc-path-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-windows-unc-path-connect/lists"}