{"_id":"fs-require","_rev":"12-b271aab95af9a8dfb25459dea3ef8b86","name":"fs-require","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"fs-require","version":"1.0.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.0.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"cd8af3400dd79d824dbc4363b6abf178351afe85","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.0.0.tgz","fileCount":9,"integrity":"sha512-3guiAJ1t2nM1sUc0rGxAr32b9hyoZz0zGn+8KV/poUEUOCMe8g3rHgjgfbgRaz19SN6s/WMDI8F5fdNnm7kseA==","signatures":[{"sig":"MEQCIBx8FWu5yF0Y+wlNbS3dWpmiqLuIxE782E3k+66p21+jAiBbfD7lF8O/ETG6XI3DpUJMA53FZww7/5frdpsxbGDvVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqurRCRA9TVsSAnZWagAAdY8QAJmSKEA3c1+19YFw+r+a\nsG8U0k057G8ZLKIkM/sIWKpeWuP2xWTOvKC0cdKz8NH7M1nio+VCBMl7+uF1\nk9ePFFXKW3cW2Y4BK9LYYOkBzhwbgiCinwnGNIPoT55yDpSWNKAfSPMY85E1\ne7U1am8lQB+Ppi8zLWvx8Mag2BDxDrarYQnFXEVOPjH1Rxcc0qG9+ua6Req2\nsVb4VrvoysTPfFji+D+BvnQOYs5vgUt6MmcShGO5XBsCOWoND+NnkoIoPEB3\nyfKjlJAANfVh7e/F11BpIJ33LoBOR5elg2O/wDERh9+XyDUFkH3L5FrM1svK\n5MXv+cqg3seQ/lZ/IqUxq1z0FuJ09XakKezLpGsh9sr7iXMOYd1cq8sXWUGj\nRgFXxpxOnV/yQh18AxyMs69SoVxNZGnu5zD1KvxX7MkZTYIQcGbNBmXg6mWX\nxS3PF1peMpKTYGeI+KDasSuCYH9/dRDPMuCugo3FGnJh2Hy0Ziw9aX2xvq7g\nUb/sceBf8PVagfHdBVKRfWaTz+6A8Ng/uaWyGz+2ixx/fuHZTlhJVl9oI1lu\n6uNvxsOC12ycw5Ad9wth+ptTUGk1RMooOG/AnCeiJUYcdGeM+o48NknUcZQ7\nBIh2zJcJD5JAFQP/5uLNdNVh9GioH0uJ5pUZLK0wvpg4y2LeQ1Y95ysI2u9E\nXVvN\r\n=zwWt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/fs-require.js","husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"3414fe56227e5a574d5875c06e0a21a5f530f63a","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist && tsc"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"6.14.13","description":"Create a require() function from any file-system","directories":{},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"_nodeVersion":"14.17.0","eslintConfig":{"extends":"@pvtnbr/eslint-config-typescript"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^0.5.0","jest":"^26.6.3","husky":"^4.3.8","memfs":"^3.2.2","eslint":"^7.24.0","es-jest":"^1.2.0","typescript":"^4.2.4","@types/jest":"^26.0.23","@types/node":"^15.6.0","lint-staged":"^10.5.4","@pvtnbr/eslint-config-typescript":"^0.1.15"},"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.0.0_1621813968807_0.5315890757834658","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"fs-require","version":"1.1.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.1.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"1d31b61b96357498e4d4a1148a3426ffeb44faa1","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.1.0.tgz","fileCount":9,"integrity":"sha512-UNPeG0SDBVyVgec9J2sdFCM5HYwQEZ0umZr1XjHvxzpNX6rX+4jvXQIrnGXFGe/X8hVQ4+T1muPiVyvSGdo3Lw==","signatures":[{"sig":"MEYCIQCX1GPiwUdvXriKRnJ4Crj2XDX7+UUz/aWS+PLPfHZFTgIhAMHQctrASUejagVPFOz/42H8BdN4ZrKPnN8zQciMcSLw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhICEuCRA9TVsSAnZWagAAecsP/RMzgWH+1yjsVX6p47t/\n6v/Ltbkpy0YzfzmknUo8367sElKjNobuUOW6CrOFi86SvOfulSHauBrJboZp\nRsW0eogR/XySF4SXITk5lujv7J0PuYhzYX5KXINIzBTMnhlu9FI1/dhLlu6o\nddDVoSpql9ejxE6t7icScv6ukF/1dRvCDMm4g5mKg45dN2NoD2vpdC3wAcYg\nRa4mEHY1OSVxVeh5+EEP/FFRHFJko/g8nEehqMzHt3VBa+jUoMu7/WetpVVu\noue68VsBxCc1W5n3hzjXFFBFyV/PyORrjTbZ+Ll2sJPFgAZ0SRC8VTvs8nUU\nNEKWV1gN7oAfRsEp2Rp7bCCpfYcTB/2A47LHdw1DnUfbhOFC6262TP/miCub\n6DdMFjaS+3pyhMi5vUrnhmcgM8ykAundmHTjMhLRhzv+i8t8WKvVYKKaIpw+\n0+rLWkkX6CmN0RxI+KA6MABG9B6SUjBO/jyDLneOors1UDh6+e0opul2+V1j\nBBMrUeHMQYFpZcDf5zaeSklbrS7zt+EaF1pWenTNxQtcuNt6e9WCUlDnQhe/\n9dIdeT9uxuuDKMiXnuq8rQ01+i39YfHuRc8XUXajqdFjVjy7fuEWanp95vBI\n5av675t7TBSw+WMgmfnEYMrHOb5yg/SIb4jkiik98LYwyjIFXRyu//197Zce\nJHk3\r\n=TAdm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/fs-require.js","husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"31c35d76f3beb7f414c5c3914daf3ff225009c2a","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist && tsc"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"6.14.14","description":"Create a require() function from any file-system","directories":{},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"_nodeVersion":"14.17.5","eslintConfig":{"extends":"@pvtnbr/eslint-config-typescript"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^0.5.0","jest":"^26.6.3","husky":"^4.3.8","memfs":"^3.2.2","eslint":"^7.24.0","es-jest":"^1.2.0","typescript":"^4.2.4","@types/jest":"^26.0.23","@types/node":"^15.6.0","lint-staged":"^10.5.4","@pvtnbr/eslint-config-typescript":"^0.1.15"},"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.1.0_1629495597967_0.38944028485694093","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"fs-require","version":"1.2.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.2.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"4d4def2c90aa8271ccfcef036c3a9c5939a48cf3","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.2.0.tgz","fileCount":9,"integrity":"sha512-P7nnaPgRFkYGlpV1EftXPm1CRvecpjKYWQhR2cjEDj3/tsUOurOPG0FJj/r5GkjI1N0DDb8fZzAWkJ1tl6aXFA==","signatures":[{"sig":"MEQCID4//MqeoISXsvktgn1EPZ5GqE/WTOdc96W3QQdGQaB2AiBmMaDbHVIR5h21gMJAeD8V/WTiJ7iNDDSAMAYtWEAqAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12172},"main":"dist/fs-require.js","husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"acd30431731808417938daed769b319f1dda1b97","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist && tsc"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"6.14.15","description":"Create a require() function from any file-system","directories":{},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"_nodeVersion":"14.18.1","eslintConfig":{"extends":"@pvtnbr/eslint-config"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^0.5.0","jest":"^26.6.3","husky":"^4.3.8","memfs":"^3.2.2","eslint":"^7.32.0","es-jest":"^1.2.0","typescript":"^4.4.4","@types/jest":"^26.0.24","@types/node":"^15.14.9","lint-staged":"^10.5.4","@pvtnbr/eslint-config":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.2.0_1635051380395_0.8119115392878911","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"fs-require","version":"1.3.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.3.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"023d9294d7869ec8a4049f70aa47fb6dc93e16a7","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.3.0.tgz","fileCount":9,"integrity":"sha512-7sgCX+AxvRYndGhsHQcHlHNfNuKVBDnxGmE2X7elfu1MW2Ty6kx9Lvs+DZymcrIQOhMIGzs82S/C0TPUNgl2Pw==","signatures":[{"sig":"MEQCIEfaOez+dFSvSlciUOPawb0A0XP8IB+F9Ih5Kr27FQXVAiBkRsGp4YWaRxsl9YRUGdxGx3zHVb3n0g/jY+BO1YYWXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12325},"main":"dist/fs-require.js","husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"00c7a7f641b8d79482e50a2e6258845eda6336d0","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist && tsc"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"6.14.15","description":"Create a require() function from any file-system","directories":{},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"_nodeVersion":"14.18.1","eslintConfig":{"extends":"@pvtnbr/eslint-config"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^0.5.0","jest":"^26.6.3","husky":"^4.3.8","memfs":"^3.2.2","eslint":"^7.32.0","es-jest":"^1.2.0","typescript":"^4.4.4","@types/jest":"^26.0.24","@types/node":"^15.14.9","lint-staged":"^10.5.4","@pvtnbr/eslint-config":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.3.0_1635051756067_0.674465565658708","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"fs-require","version":"1.4.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.4.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"2e48b49885d2f8aef7cc3b4cc917e53c767b5630","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.0.tgz","fileCount":13,"integrity":"sha512-ZytCzc6QAE0lprblNErZJuDVNoT0JPRSBCUXIMrIB0mLlwcAppbE5fqUyqC8zhgrrR3+whvpKLxOqtk8EnSbeA==","signatures":[{"sig":"MEQCIBMUgDU7QSqNDyRfEP63fNnWniCPSudhD915zyOGHDTPAiBAEvBHfANRtHRixJdxOK/f93Hl57GLVmTMtnRxqFqL2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2rliCRA9TVsSAnZWagAAPsgP/2UFG5joMXhJq4ujpG/W\nHOhTI8z9k/GpVvgPpFPsDcxQxLV7ux3iBU+xD3LNDmUSPKlcOL5T1GtQZ1hC\nQa9+WyEh4XHEVlhs5LtGza688VYP+Z1s0cODACVYQd89v9U0xwiUZJrAihg4\n49XjmvJUTZ9euwokfHGcW2f6ZybA7nmhMCXukqdyAegkpZvhery5TN74zMlB\n/qdPeHdV8hy6j/mP/Rz+su0EntsisCHCMdcvUCEWTE8L3gICvjc1kWJkoZ+u\nllcG5+Iu2rnEGvtFQZrvauntVnJG9cFvEJKNclV1Zfkq6bm1eBksk+yeX4gp\nGFqa5oSj4rnfqBzEtPk70QKpive/LicIyLX/XTb0ZN8cxFoRr2GOekwqSVak\nxt2/GvU3z2ZLo8s3Z/mv4KASwZiMsDf4I6NBej0guXUbPw+X8GEyXq5tmnwW\nJX+O/vu2Kncw7FV9290Cx9FXp0hmSDZw9CaXvNqvVnDgZDbixhlUbEsYdvvq\ngH/W2MYGFDR8RuEZ5pvl0/6shZoYU7VcyCpWu45o3Y3VXQoXswxjM2vikO1C\nE5QcOmkTRjFI6Ln/9OlDtxpxDGt1/84YcnbucqLGypM3E9O1BuVYWpNuw4a/\ndVAEqoWTleg4U1UWFii9kgCujzU9QBdtgg3FABGzaRGvUoCtjuxDIyTzMau6\n0xpg\r\n=Ri1a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/fs-require.js","husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"342b36b9f57c0df4e68805f7dc509b5b15d6cdc0","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist && tsc"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"6.14.15","description":"Create a require() function from any file-system","directories":{},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"_nodeVersion":"14.18.1","eslintConfig":{"extends":"@pvtnbr/eslint-config"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^0.5.0","jest":"^26.6.3","husky":"^4.3.8","memfs":"^3.2.2","eslint":"^7.32.0","es-jest":"^1.2.0","typescript":"^4.4.4","@types/jest":"^26.0.24","@types/node":"^15.14.9","lint-staged":"^10.5.4","@pvtnbr/eslint-config":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.4.0_1635059847769_0.7410717411446908","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"fs-require","version":"1.4.1","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.4.1","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"c3763dfdc01ebfe21ce56102a7e7241d7e2a2196","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.1.tgz","fileCount":6,"integrity":"sha512-BIbxbqksdYkk/Hsi57blyMn0num18dJ5Dh2S7Dfriamiq8MX58Mv+TdDfRdmomzeWfhQAgTeNQiphPAROpT1sw==","signatures":[{"sig":"MEYCIQDCY9Dd78LYeHWJ1MDcr8oSaONIZP2hvpPJRW+LzYrrBwIhANjeE8BCMFvjJHFlCmdk6ZMGFZR3PxGoIWfXd2R6j+Y0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhbR4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3Ng/9EB7FLKDUqS3kB9q2+/UAfzSWFOTzUj0zcIY5fYBri1uM01aM\r\nbTZtVLL7yd9wj+JmgGEwJqdj81I3IFbyYLjoNtmZudYRTHc+hMHIJeWpx583\r\n5YA+oD9GFFsUWGYTQU2PeAeDe9Ro9nR9HzGWpJ/gDbVnydOTSYLSdUkYFssc\r\nG9k6m++N5Ni/EYPa8UMjoCnu9eYGriUE9DGIibB+n0E8KIlNjeWagEZ+GgUP\r\nkoWnClv74YVqn4FM+o75dyZ+OwIDJ6bVQcB/EgQ/UqCAdoScHe4SGGdmgjqk\r\nFBAgjVst1G+Lr14C1K4AqMbBbnsn3oAhb2VVQziHIfClbEkj2zIt0eUO7Uef\r\nOL7OXT50wRNpkBFDPC5zmz2mpErwivjERN6fqHVz9iKvTIwl8L8hwkBpyiHT\r\nvq3tZXcUIFjTelvp8XpvI4Z2aPXrVlIygavcFY1QDQVPtHmgzLAjXWqrInpA\r\ngLRUXj44VqBLXQ5vwXhsNnvLQdMAG/jq6JsVo23Bss53X4bmbAbu7ZpyH9fl\r\nHEdrS+FkJrH124+JW839cJjKOVgAH8AShqvp+V5E+K7i7ucAzsk4D3k9r7Ca\r\nijWaevtgV007s/c/P/j9fqL/frVFhYnLwSNkQTU+V+HoccwsZo6xSjoyKXEt\r\nzuTSbzcfOE5XGgWfEuZ6IxKYh/VyH+8Pkus=\r\n=0sbI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"c5ae322925d5f7c62055671252975f4c5c1cdad3","imports":{"#fs-require":{"types":"./src/index.ts","default":"./dist/index.mjs","development":"./src/index.ts"}},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"8.19.2","description":"Create a require() function from any file-system","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.4.1_1669706871862_0.6617402762445954","host":"s3://npm-registry-packages"}},"1.4.2":{"name":"fs-require","version":"1.4.2","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.4.2","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"24d86530c9a363f8a70e458d42f25d490c1e047e","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.2.tgz","fileCount":6,"integrity":"sha512-fC9qtpGiFqLwScjlY0citpwB2ClVonDweFYkPboumFncDoKQDojTkWqk9V6cBoCVwMzPcDNid2c9JGO05qqEbg==","signatures":[{"sig":"MEUCICJXUFAu7Nmw4oNb4NP3eS0WFNIZgpq5CGsks7Y9cJc4AiEA3IsstQkxca9XDcMYpsfM27eUp3D1m7+bpx6qO6LiJgM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh2p3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqS+g//SciSzHCNa+ZXjea2fIf38g6SbSgdfKq9vvo3M+gDNGMAW2c8\r\nQm/UZ6NU/LUlwQO0QGAS+k2E3fCOT8U6581G8Srf0oPyIYbYCKeFTst51wwu\r\n8ef7xVUtk15BGBpk4ZWH6QDhwM7i4Z37LwlqayvxrEO5kEkHcYEnDs1k13pI\r\ns/CpKZUKrfeUDzh2z9kyr3eG8cY9GGdl1+1mF3E/1fxGFDiWexkgKuT4hLFF\r\nyU1lCvTgGYJn9cPpdX1LK3PNV98MboYbh0C+AvjcHfSfeycIR7AnZtu+wIeg\r\nwo4hkeMEP0zdtmtbc6wLOAP6PAOg8cUgK1/5KXfS7iIFP2OC2NbbV8P2SGpH\r\nzc4O+aW8kD9VD76ZmDyv47y6ehdAAVF4aLIpThgMFcXDaPtMOoCqcqgjaz4M\r\nBrCbD077bDMZK5opGmhHskOnQO7VdnvcpWQ2ippX2xY34ldBLtnpD+JCrqmi\r\nqZnxencf89axxoWqww9MdMx2AVaxFWM+ScxbrRmZ/n3u8T1K/13CToEqn3hS\r\nP+tIex65Cs9+euDQCGCRlH6axIcypRbLLzauIT1p783s9f8BlrEDc/kNf1Mp\r\nau9zgfX22ikl3Fp1JeyppWPLmerstYTpEZaLV5YtICKLbJ8Vw4AeDfpvpV2N\r\nDbFtzDhwXE9j9lg4xUudFvoj1+8TmuzJTG4=\r\n=dKg1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"93c9f2030bb808d06a16c0fedc05d43d3e70fe56","imports":{"#fs-require":{"types":"./src/index.ts","default":"./dist/index.cjs","development":"./src/index.ts"}},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"8.19.2","description":"Create a require() function from any file-system","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.4.2_1669818999147_0.5314989285852381","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"fs-require","version":"1.5.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.5.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"8ce2dde7ae881647b63e7439f2652fb540decac7","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.5.0.tgz","fileCount":6,"integrity":"sha512-TguC+1YCkfBeohSKz/CKjArD0zry2ns0aqejCLVncy2ZHpCM9hJqpuzBu0EgzEPKRgL8CLNmw0Jpmi+m7gtaDQ==","signatures":[{"sig":"MEQCIBzRW8X+Cf1+VHEExchM2VuxQttyo74VbTPgXxvwFRGYAiBgdSENwEHOKpnu9fJ9pnp1G3xaW5DPt7UOTkcY4OkA6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiFbZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSoA/9FTjWWQybrewuHAEPCFQkdGtR9JCA2GFFgcx/Y4LN7HI8rA9J\r\ny0v/LNcegKL5IyfOU2mJvRtnQhTYV4t12/z0DQYwgsFyT/GcoC4QQ7LkeKPQ\r\nKYAAUt3AcVESXlaKWOJbilte15kLMep3DEib6wkzk24xOb6S4Xh0mv/D4Sjs\r\nEE/l9CWZCtu4MZg283gWdydSOhpVcTRNRwKmPY+uNOEr4JfnwLLVYk0pqgEp\r\n3/QG6sEhAz2tBItUUfrbid4DtwTux/lAvHICrlxvBKboFK1iGXxS1NUTYLno\r\nMfl70sRI9Xk+2c/YgOy5gjs5Pq6wbOhqQxlYu+vpL9jUn6W/5kxR5/R6+63i\r\nsjxKy0bIKaT7JbUkQmy3PEyiqu6ng8UWbtWNjWhMVNjVHvTAxWTd+2ESEN7I\r\nXzX8RLrHNc7U+/JPdIp0WrggZ6+twu908ta6yeZq8/chCkTrOD7+0tZcYT+I\r\nSWTUqxGq6Dw3fY1mMQiWPUUPlTDLKLZgRITLCyvd3Oh7teC3XnmFqmQhXNj/\r\nD19Bnwyvamx+gLpiCYRi+fetos9pzmt8x5+2qpanmLs91KjMi36M4mAlkFQp\r\nTX4gbAmhhQNmnCIMtF8ZIrNjHYIslXcCSXlU1nXbzZ4Jl0zhz/5Yx+iwnjHF\r\nQlOBCYL+rQEbHCaARwg+FcPhMODLFAI5BNk=\r\n=aF1V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"9fa216d429c39731a3fd130ddb9247a7cc54017c","imports":{"#fs-require":{"types":"./src/index.ts","default":"./dist/index.cjs","development":"./src/index.ts"}},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"8.19.2","description":"Create a require() function from any file-system","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.5.0_1669879513505_0.14050226993361714","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"fs-require","version":"1.6.0","keywords":["fs-require","fs","require","memfs","testing"],"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","_id":"fs-require@1.6.0","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"homepage":"https://github.com/privatenumber/fs-require#readme","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"008844621dffcace3a354e2ab998c969f16a779b","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.6.0.tgz","fileCount":7,"integrity":"sha512-zk5lFDV09Ef+CwOuPI/Q46lNdyzypPH/dB4Ywnyt40l2yqe5Z8ZJBGFaaYHwOwXAtKJEW4lSsn6V26erlEXVGA==","signatures":[{"sig":"MEUCIDt7YDfhpilG7YtxVz4pCn1f6cto4A7O99BEGZoG2yiSAiEAjMWeVUj1xUzYjJMptd4HNKJtH7EZV6/NJSEjSs41bcY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjgH6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5xRAAlHHmsR0gSRb3WVETmcrDn84ZgGU8ClRjPOXV7+b3Twj8RGTu\r\nexMmeFcGkkasEJGlkmCUAptHnIpqQBGFZCyr6FWD5HTWineP4Off4KWEZ9c9\r\nUlIgkxTqbFn1wWkas7MVgB3cMUD1WiF6QlVsMnDTk28kIWZpsTB86oS46g1L\r\ngyyeAm8YcTvjcYf/ZUQM/rME2f+sUnxChRwDX+PkuPWo8OE+JExAukjEdKVs\r\nBxvr5q8Ev9bwiE+Wvm+h+1eUXGM1eLlxBhBu4jwX8pkLEhSLd4sJ5Kkl6vK0\r\n/0pSr8ujqdf/lZdyWEInpkC1T42LNUyydJKZELGiqn6bzZYmeNzVNpTKVPZi\r\nZ9hklO4NzQwOzx4gsM6sh8obWIhwm8QZxf5uk5NAv6cNhOAGFoXOfmPl8qEe\r\n0IQHQSJEKwspvof5Er78xZmnhOf08JCt60DwyA+43eB4M3XUwS+cghosYxJ+\r\nYSc8f5apQTFv0G7VcYs32Y4lkHx+84ovSA+ER5zMI5HHJs4PPiR27s06vhPd\r\n04qjPbJWBS152VBo2ZvbrLPhJw+6DaxtkRuylwEem9q3PoVUR3dJc37W7i81\r\nAbau0cvc0Iw46nUuR0PYgaz5rkiQBRVA5uNr2dcpea5FlzJWke9GDegbEJSe\r\np7lCiKGesKseoL21TVHAxMfOyxct4/ylWnA=\r\n=sKB0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.cjs","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"5c0e97a85c2ecad42ee947330e79155d949ebcb5","imports":{"#fs-require":{"types":"./src/index.ts","default":"./dist/index.cjs","development":"./src/index.ts"}},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"8.19.2","description":"Create a require() function from any file-system","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fs-require_1.6.0_1670251002745_0.22856495653904907","host":"s3://npm-registry-packages"}},"2.0.0":{"_id":"fs-require@2.0.0","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"dist":{"shasum":"a68f01ae18bfb2b27b3f53981eda842c20da7390","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-2.0.0.tgz","fileCount":7,"integrity":"sha512-Wy5plm6iyoHem47wZlLyaKfR4ophL6nogPJpbofWp4X5+hJYTkRM+MKH8t1tBIlbbIIim5vBlRMeKi1x9/z0CQ==","signatures":[{"sig":"MEUCIA55Z4qLITt5Hj28VYyd39TmU42LaCZINSn2mU6qqR31AiEApA4V7UuAXntJdspk/QvlHeaBa7L0jB1HAXSiQLq9LVQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWebaQS8sQp82HVVdgrlW6r0dHP1G4XuLgfoZcR3TgoAIhAPo91OsmJ9r2vbSIELceSLaDVs1jKsgs5KD6j+3vBEkd"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fs-require@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16437},"main":"./dist/index.cjs","name":"fs-require","type":"module","types":"./dist/index.d.cts","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"module":"./dist/index.mjs","engines":{"node":">=12.22"},"exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","gitHead":"31daf4d2d294cf859834fefd6503fbc4eaa61cb3","imports":{"#fs-require":{"default":"./dist/index.cjs"}},"license":"MIT","version":"2.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"54a893af-ca16-464f-9ddb-2e50dfe1b1ba"}},"homepage":"https://github.com/privatenumber/fs-require#readme","keywords":["fs-require","fs","require","memfs","testing"],"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"_npmVersion":"11.20.0","description":"Create a require() function from any file-system","directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_nodeVersion":"26.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs-require_2.0.0_1793942177094_0.9459526581977488"}}},"time":{"created":"2021-05-23T23:52:48.807Z","modified":"2026-11-06T05:16:17.587Z","1.0.0":"2021-05-23T23:52:48.940Z","1.1.0":"2021-08-20T21:39:58.075Z","1.2.0":"2021-10-24T04:56:20.553Z","1.3.0":"2021-10-24T05:02:36.201Z","1.4.0":"2021-10-24T07:17:27.901Z","1.4.1":"2022-11-29T07:27:52.021Z","1.4.2":"2022-11-30T14:36:39.333Z","1.5.0":"2022-12-01T07:25:13.742Z","1.6.0":"2022-12-05T14:36:42.900Z","2.0.0":"2026-11-06T05:16:17.199Z"},"bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"license":"MIT","homepage":"https://github.com/privatenumber/fs-require#readme","keywords":["fs-require","fs","require","memfs","testing"],"repository":{"url":"git+https://github.com/privatenumber/fs-require.git","type":"git"},"description":"Create a require() function from any file-system","maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"readme":"# fs-require [![Latest version](https://badgen.net/npm/v/fs-require)](https://npm.im/fs-require) [![Monthly downloads](https://badgen.net/npm/dm/fs-require)](https://npm.im/fs-require) [![Install size](https://packagephobia.now.sh/badge?p=fs-require)](https://packagephobia.now.sh/result?p=fs-require) [![Bundle size](https://badgen.net/bundlephobia/minzip/fs-require)](https://bundlephobia.com/result?p=fs-require)\n\nCreate a `require()` function from any file-system.\n\nPass in a [virtual file-system](https://github.com/streamich/memfs) for in-memory testing without writing to disk.\n\n### Features\n- 💞 Works well with [memfs](https://github.com/streamich/memfs)!\n- 🪄 Resolves implicit entry `index` and implicit extensions `js` and `json`\n- 🗺 Resolves relative and absolute paths\n- 📍 `__dirname` & `__filename`\n- ✅ `require.resolve()` & `require.cache`\n- 👻 Mocks `fs` within fsRequire\n- 👣 Call stack shows paths with `fs-require://` protocol\n\n<sub>Support this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️</sub>\n\n## 🚀 Install\n\n```bash\nnpm i fs-require\n```\n\n## 🙋‍♀️ Why?\nUsing fs-require with [memfs](https://github.com/streamich/memfs) is a great combination for writing tests that interact with the file-system.\n\nTesting functionality that interacts with the file-system can be brittle because they expect a clean slate and can also be dangerous if the path is wrong. Creating a virtual file-system with `memfs` and testing its contents with `fsRequire` makes it secure and fast!\n\n\n## 👨‍🏫 Usage\n\n```js\nimport { Volume } from 'memfs'\nimport { createFsRequire } from 'fs-require'\n\n// Create a virtual fs from JSON\nconst virtualFs = Volume.fromJSON({\n    '/hello-world.js': `\n        module.exports = function () {\n            return 'Hello world!'\n        }\n    `\n})\n\n// Create fsRequire\nconst fsRequire = createFsRequire(virtualFs)\n\n// Import virtual module\nconst helloWorld = fsRequire('/hello-world')\n\nconsole.log(helloWorld()) // Hello world!\n```\n\n## ⚙️ API\n\n### createFsRequire(fs, options?)\nReturns a `fsRequire(modulePath)` function that resolves from the file-system passed in.\n\n#### fs\nType: `FileSystem`\n\nRequired\n\nThe file-system to resolve requires from.\n\n#### options\n##### options.fs\n\nType: `boolean | FileSystem`\n\nCode executed the virtual file-system may `require('fs')` and this may either pose as a security concern or yield inconsistent results as the virtual file won't not accessible through the actual `fs` module.\n\nBy default `require('fs')` is shimmed to the file-system passed into `createFsRequire`.\n\nTo disable this behavior and resolve to the real `fs` module, set this to `true`.\n\nYou can also pass in a different file-system too.\n\n\n### fsRequire(modulePath)\n\n#### modulePath\nType: `string`\n\nRequired\n\nPath to the module you want to \"require\". Mocks Node.js [`require`](https://nodejs.org/api/modules.html#requireid).\n\nRelative paths and bare specifiers (package names) resolve from the file that called `createFsRequire()`, like `require` resolves from the file it's used in. If the caller isn't a file (e.g. `node -e` or the REPL), relative paths are passed to the file-system as relative paths, and bare specifiers resolve from fs-require's own location.\n\n### fsRequire.resolve(modulePath)\n\n#### modulePath\nType: `string`\n\nRequired\n\nPath to the module you want to \"resolve\". Mocks Node.js [`require.resolve`](https://nodejs.org/api/modules.html#requireresolverequest-options) for paths that start with `/` or `.` or are absolute on the current platform: it returns the matching path in the file-system, and throws a `MODULE_NOT_FOUND` error when nothing matches. It tries the path as a file, then with `.js` and `.json` appended, before looking for a directory. For a directory, it reads `package.json#main` if present and tries that path as a file or a directory index. If it does not match, it tries the directory's `index.js` and `index.json`.\n\nAny other request, such as a package name, is returned unchanged without checking that it is installed, because `fsRequire()` doesn't read it from the file-system: it passes it to Node.js, except for the `fs` requests that the [`fs` option](#optionsfs) shims.\n\n### fsRequire.cache\n\nType: `Record<string, Module>`\n\nAn object that contains the cache for modules that have been loaded so far. The key is the absolute path to the module, and the value is the module instance. Mocks Node.js [`require.cache`](https://nodejs.org/api/modules.html#requirecache).\n\nTo re-load a module that has already been loaded, you can delete the cache the same way you would in Node.js:\n\n```js\ndelete fsRequire.cache[fsRequire.resolve('/some-module.js')]\n```\n\n## 💁‍♂️ FAQ\n### Can it resolve case insensitive paths?\nCase sensitivity in paths is a file-system concern so it would depend on the `fs` passed in. For example, [macOS (native fs) is case insensitive](https://discussions.apple.com/thread/251191099#:~:text=No.,have%20two%20files%20named%20File.). [memfs is case sensitive](https://github.com/streamich/memfs/issues/533).\n\n\n## 👨‍👩‍👧 Related\n- [fs-monkey](https://github.com/streamich/fs-monkey) - By the same author of [memfs](https://github.com/streamich/memfs). Patches the global `require` to access a virtual fs.\n","readmeFilename":"README.md"}