{"id":30180932,"url":"https://github.com/streamich/nodefs","last_synced_at":"2025-08-12T08:06:20.948Z","repository":{"id":33354841,"uuid":"36999647","full_name":"streamich/nodefs","owner":"streamich","description":"THIS IS OLD, USE streamich/memfs INSTEAD","archived":false,"fork":false,"pushed_at":"2018-01-05T09:30:42.000Z","size":35,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T12:29:54.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/streamich.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":"2015-06-07T00:38:18.000Z","updated_at":"2020-04-25T21:04:17.000Z","dependencies_parsed_at":"2022-07-26T13:32:18.307Z","dependency_job_id":null,"html_url":"https://github.com/streamich/nodefs","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"a96995efb5d8b9a9b0c0f2a1d22497cf1f4366a3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/nodefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fnodefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fnodefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fnodefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fnodefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/nodefs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fnodefs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269763709,"owners_count":24471886,"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":"2025-08-12T08:06:08.985Z","updated_at":"2025-08-12T08:06:20.926Z","avatar_url":"https://github.com/streamich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e THIS IS OLD, USE [`streamich/memfs`](https://github.com/streamich/memfs) INSTEAD\n\u003e\n\u003e THIS IS OLD, USE [`streamich/memfs`](https://github.com/streamich/memfs) INSTEAD\n\u003e\n\u003e THIS IS OLD, USE [`streamich/memfs`](https://github.com/streamich/memfs) INSTEAD\n\n# Virtual File System for Node.js\n\nMount virtual files to your `fs` filesystem.\n\n```javascript\nvar nodefs = require(\"nodefs\");\n\nvar layer = {\n    \"test/index.js\": \"console.log('Hello World!')\",\n    \"text.txt\": \"Hello again!\"\n    // ...\n};\n\nnodefs.mount(\"./\", layer);\nrequire(\"./test/index.js\"); // Hello World!\n\nvar fs = require(\"fs\");\nconsole.log(fs.readFileSync(\"text.txt\").toString()); // Hello again!\n```\n\nWhy is it useful? It is used in `nodefs-drive` package to pack your Node.js projects into a single `.js` file.\nWhen you run the file, `nodefs` creates the virtual file system and you app runs as if it was running from your hard drive.\n\n# TODOs\n\n - Crate a light version with only `fs.readFileSync`, `fs.statSync`, and `fs.realpathSync`.\n - Implement the rest of the mehtods.\n - Crate a version with *read-only* file system.\n - Split project in multiple packages, lets say: (1) *in-memory* file system; (2) *read-only* file system; (3) etc..,\n and (4) a *union* file system that can combine then all together with `fs` module.\n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fnodefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Fnodefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fnodefs/lists"}