{"_id":"@aleung/unionfs","_rev":"1-67b662bd9e54733ddb3d91e3e63bb8b5","name":"@aleung/unionfs","dist-tags":{"latest":"4.4.0"},"versions":{"4.4.0":{"name":"@aleung/unionfs","version":"4.4.0","description":"Use multiple `fs` modules in a union.","main":"lib/index.js","types":"lib/index.d.ts","keywords":["fs","file","file system","mount","union","unionfs","many file systems","multiple"],"repository":{"type":"git","url":"https://github.com/aleung/unionfs.git"},"scripts":{"build":"tsc -p .","test":"jest","test-watch":"jest --watch","test-coverage":"jest --coverage","semantic-release":"semantic-release","prettier":"prettier --ignore-path .gitignore --write \"src/**/*.{ts,js}\"","prettier:diff":"prettier -l \"src/**/*.{ts,js}\""},"dependencies":{"fs-monkey":"^1.0.0"},"devDependencies":{"@semantic-release/changelog":"5.0.1","@semantic-release/git":"9.0.0","@semantic-release/npm":"7.0.10","@types/jest":"26.0.20","@types/node":"11.15.44","jest":"26.6.3","memfs":"3.2.0","memory-fs":"0.5.0","prettier":"2.2.1","semantic-release":"17.3.7","source-map-support":"0.5.19","ts-jest":"26.5.0","ts-node":"9.1.1","typescript":"4.1.3"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx"],"testEnvironment":"node","transformIgnorePatterns":[],"transform":{"^.+\\.tsx?$":"ts-jest"},"testMatch":["**/src/__tests__/**/*.ts?(x)"]},"release":{"verifyConditions":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],"prepare":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},"licenseText":"This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org>\n","license":"SEE LICENSE IN LICENSE","_id":"@aleung/unionfs@4.4.0","dist":{"shasum":"52e75911439c68ca13e85ee269178c48b2ace280","integrity":"sha512-cyIr8UX6u5OsdUwo7oyNi9j783krvCMdBOYqS/9ZibrZsKYp1aJASMsFyXUT7g0gxUVfu6gDepCXks5zG5UC0w==","tarball":"https://registry.npmjs.org/@aleung/unionfs/-/unionfs-4.4.0.tgz","fileCount":12,"unpackedSize":41659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIRxXCRA9TVsSAnZWagAAtk0QAJxtQ5d+1oa7ZC8MGwRt\naw9tXELzFDiGc0kJmOwfSrni9OtFDbJ0WWlca5mjH7E8JzvjYoPCCtFAjhWh\ntrgAsn2uouR+P7yUwSkb6FoSigIo5jPDlosmiNHnoWsApZgjECXJ0CClP646\nSFIJ8beFDQQ4x5iOnsliHuqnJEmri2nHO2tlJJLM4R6BeoSFFOp/6UMB0gUr\ny6icLIeWO9834+NpT7BqvKimCZR/wjwDiVGelmuWdnoEYHsH2//vywqUvUo+\n2sCBSD4xTphZJC5ajXUeXtDhVQNPwR98jHdMI4Q1vcqzYLVi1YNBtl6Q+slj\nzT2QBXWaHs8PNtYAu7XuHaQt0yirziwuVS+I2WgTNxPbpij9ar1DijHzMD+l\nwLXMyNtK1HSejIUZ+Jw4pg3ymAMHyBOKchwLy4+lzBeS1NzOH9qRmsBZE5ud\nW+oZJ6aLxryM+wYNRiyJVe1wDiWR3zjQp/2o7Uz2Y7ysPxHs1lFXgn9rbMIi\n8vbtAmNmcBY39ObYB5WlX+NOw75PyhWjKWBmq6krbgRY2LN/qMWwoUPIeKQu\nH9hz2FNq38BqBIpDvwDbvH9HauZnN/d3+wAXOKk8fpzFPaMeaPfBszkpYSVG\nh6SUvR5D0jLAqhYLenFhV8fssyoOYRpqHZepOjIdEYzTQdN6OPFoxmywmSU4\nfsb0\r\n=ljzE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyaveEbnXhy7KwBQMgyHwSSgIV67eFUa19TjPHtO+uawIhAKh3vKyW3phy1otcYyGdE0FYMwPtg/8Xk6jxle2zSifH"}]},"_npmUser":{"name":"aleung","email":"leoliang@gmail.com"},"directories":{},"maintainers":[{"name":"aleung","email":"leoliang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unionfs_4.4.0_1612782678806_0.5028177534602027"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-08T11:11:18.777Z","4.4.0":"2021-02-08T11:11:18.961Z","modified":"2022-04-04T12:38:12.398Z"},"maintainers":[{"name":"aleung","email":"leoliang@gmail.com"}],"description":"Use multiple `fs` modules in a union.","keywords":["fs","file","file system","mount","union","unionfs","many file systems","multiple"],"repository":{"type":"git","url":"https://github.com/aleung/unionfs.git"},"license":"SEE LICENSE IN LICENSE","readme":"# unionfs\n\n> **Note**: This is a fork of streamich/unionfs. \n> It holds my PRs and is published as npm module [@aleung/unionfs](https://www.npmjs.com/package/@aleung/unionfs).\n\nCreates a union of multiple `fs` file systems.\n\n[![][npm-img]][npm-url] [![][travis-badge]][travis-url]\n\n    npm install --save unionfs\n\nThis module allows you to use multiple objects that have file system `fs` API at the same time.\n\n```js\nimport {ufs} from 'unionfs';\nimport {fs as fs1} from 'memfs';\nimport * as fs2 from 'fs';\n\nufs\n    .use(fs1)\n    .use(fs2);\n\nufs.readFileSync(/* ... */);\n```\n\nUse this module with [`memfs`][memfs] and [`linkfs`][linkfs].\n`memfs` allows you to create virtual in-memory file system. `linkfs` allows you to redirect `fs` paths.\n\nYou can also use other *fs-like* objects.\n\n```js\nimport * as fs from 'fs';\nimport {Volume} from 'memfs';\nimport * as MemoryFileSystem from 'memory-fs';\nimport {ufs} from 'unionfs'\n\n\nconst vol1 = Volume.fromJSON({'/memfs-1': '1'});\nconst vol2 = Volume.fromJSON({'/memfs-2': '2'});\n\n\nconst memoryFs = new MemoryFileSystem;\nmemoryFs.writeFileSync('/memory-fs', '3');\n\n\nufs\n    .use(fs)\n    .use(vol1)\n    .use(vol2)\n    .use(memoryFs);\n\nconsole.log(ufs.readFileSync('/memfs-1', 'utf8')); // 1\nconsole.log(ufs.readFileSync('/memfs-2', 'utf8')); // 2\nconsole.log(ufs.readFileSync('/memory-fs', 'utf8')); // 3\n```\n\nYou can create a `Union` instance manually:\n\n```javascript\nimport {Union} from 'unionfs';\n\nvar ufs1 = new Union;\nufs1\n    .use(fs)\n    .use(vol);\n\nvar ufs2 = new Union;\nufs2\n    .use(fs)\n    .use(/*...*/);\n```\n\n\n[npm-url]: https://www.npmjs.com/package/unionfs\n[npm-img]: https://img.shields.io/npm/v/unionfs.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/unionfs\n[travis-badge]: https://travis-ci.org/streamich/unionfs.svg?branch=master\n\n\n\n# License\n\n[Unlicense](./LICENSE) - public domain.\n","readmeFilename":"README.md"}