{"id":16832691,"url":"https://github.com/zswang/proxy-fs","last_synced_at":"2025-03-18T00:50:00.059Z","repository":{"id":65476762,"uuid":"61811522","full_name":"zswang/proxy-fs","owner":"zswang","description":"A simple proxy filesystem.","archived":false,"fork":false,"pushed_at":"2016-06-28T06:24:49.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T09:09:41.125Z","etag":null,"topics":["filesystem"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zswang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-23T14:27:23.000Z","updated_at":"2018-01-22T01:07:39.000Z","dependencies_parsed_at":"2023-01-25T06:25:11.343Z","dependency_job_id":null,"html_url":"https://github.com/zswang/proxy-fs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fproxy-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fproxy-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fproxy-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fproxy-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/proxy-fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135897,"owners_count":20403797,"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":["filesystem"],"created_at":"2024-10-13T11:50:04.971Z","updated_at":"2025-03-18T00:50:00.040Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"proxy-fs\n-----\n\nA simple proxy filesystem.\n\n# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\n## example\n\n```js\nvar mfs = new MemoryFileSystem({});\nvar pfs = new ProxyFileSystem(function (path) {\n  if (/abc/.test(path)) {\n    return {\n      path: '/data/hello.js',\n      fileSystem: mfs\n    };\n  }\n});\n\nmfs.mkdirpSync('/data');\nmfs.writeFileSync('/data/hello.js', 'hello');\nconsole.log(String(pfs.readFileSync('/data/abc.js')));\n// \u003e hello\n```\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://npmjs.org/package/proxy-fs\n[npm-image]: https://badge.fury.io/js/proxy-fs.svg\n[travis-url]: https://travis-ci.org/zswang/proxy-fs\n[travis-image]: https://travis-ci.org/zswang/proxy-fs.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/proxy-fs?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/proxy-fs/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fproxy-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fproxy-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fproxy-fs/lists"}