{"id":14263220,"url":"https://github.com/streamich/linkfs","last_synced_at":"2025-08-12T08:06:38.250Z","repository":{"id":33768943,"uuid":"37425204","full_name":"streamich/linkfs","owner":"streamich","description":"Rewrite file system `fs` paths","archived":false,"fork":false,"pushed_at":"2025-08-03T23:33:38.000Z","size":239,"stargazers_count":59,"open_issues_count":13,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T01:34:19.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-06-14T18:56:20.000Z","updated_at":"2025-07-22T16:37:40.000Z","dependencies_parsed_at":"2023-09-23T10:10:00.019Z","dependency_job_id":"7d16255b-8336-45a5-879f-5e0fc8829960","html_url":"https://github.com/streamich/linkfs","commit_stats":{"total_commits":552,"total_committers":5,"mean_commits":110.4,"dds":"0.29166666666666663","last_synced_commit":"8347d84ca3dd4d412742f4ec6428ef63c8fb7f63"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/linkfs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Flinkfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Flinkfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Flinkfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Flinkfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/linkfs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Flinkfs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269738959,"owners_count":24467621,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-08-22T13:04:45.989Z","updated_at":"2025-08-12T08:06:38.224Z","avatar_url":"https://github.com/streamich.png","language":"TypeScript","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# linkfs\n\nRedirects filesystem paths.\n\n[![][npm-img]][npm-url] [![][travis-badge]][travis-url]\n\n    npm install --save linkfs\n\n```js\nimport {link} from 'linkfs';\nimport {fs} from 'memfs';\n\nfs.writeFileSync('/foo', 'bar');\nconst lfs = link(fs, ['/foo2', '/foo']);\nconsole.log(lfs.readFileSync('/foo2', 'utf8')); // bar\n```\n\n# Reference\n\n### `link(fs, rewrites)`\n\nReturns a new *fs-like* object with redirected file paths.\n\n`fs` is the source *fs-like* object.\n\n`rewrites` is a 2-tuple or an array of 2-tuples, where each 2-tuple\nhas a form of `[from, to]`. `from` is the new, *virtual* path; and `to`\nis an existing path in the `fs` filesystem.\n\n```js\nconst lfs = link(fs, ['/foo', '/bar']);\n```\n\nor\n\n```js\nconst lfs = link(fs, [\n    ['/foo1', '/bar1'],\n    ['/foo2', '/bar2'],\n    ['/foo3', '/bar3'],\n]);\n```\n\n[npm-url]: https://www.npmjs.com/package/linkfs\n[npm-img]: https://img.shields.io/npm/v/linkfs.svg\n[memfs]: https://github.com/streamich/memfs\n[unionfs]: https://github.com/streamich/unionfs\n[linkfs]: https://github.com/streamich/linkfs\n[fs-monkey]: https://github.com/streamich/fs-monkey\n[travis-url]: https://travis-ci.org/streamich/linkfs\n[travis-badge]: https://travis-ci.org/streamich/linkfs.svg?branch=master\n\n\n\n# License\n\n[Unlicense](./LICENSE) - public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Flinkfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Flinkfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Flinkfs/lists"}