{"_id":"fs-require","_rev":"10-19b36a44e3e4edebe33062535a214856","name":"fs-require","dist-tags":{"latest":"1.6.0"},"versions":{"1.0.0":{"name":"fs-require","version":"1.0.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"dist/fs-require.js","scripts":{"lint":"eslint .","build":"rm -rf dist && tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"devDependencies":{"@pvtnbr/eslint-config-typescript":"^0.1.15","@types/jest":"^26.0.23","@types/node":"^15.6.0","es-jest":"^1.2.0","eslint":"^7.24.0","esno":"^0.5.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","memfs":"^3.2.2","typescript":"^4.2.4"},"eslintConfig":{"extends":"@pvtnbr/eslint-config-typescript"},"gitHead":"3414fe56227e5a574d5875c06e0a21a5f530f63a","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-3guiAJ1t2nM1sUc0rGxAr32b9hyoZz0zGn+8KV/poUEUOCMe8g3rHgjgfbgRaz19SN6s/WMDI8F5fdNnm7kseA==","shasum":"cd8af3400dd79d824dbc4363b6abf178351afe85","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.0.0.tgz","fileCount":9,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx8FWu5yF0Y+wlNbS3dWpmiqLuIxE782E3k+66p21+jAiBbfD7lF8O/ETG6XI3DpUJMA53FZww7/5frdpsxbGDvVw=="}]},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.0.0_1621813968807_0.5315890757834658"},"_hasShrinkwrap":false},"1.1.0":{"name":"fs-require","version":"1.1.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"dist/fs-require.js","scripts":{"lint":"eslint .","build":"rm -rf dist && tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"devDependencies":{"@pvtnbr/eslint-config-typescript":"^0.1.15","@types/jest":"^26.0.23","@types/node":"^15.6.0","es-jest":"^1.2.0","eslint":"^7.24.0","esno":"^0.5.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","memfs":"^3.2.2","typescript":"^4.2.4"},"eslintConfig":{"extends":"@pvtnbr/eslint-config-typescript"},"gitHead":"31c35d76f3beb7f414c5c3914daf3ff225009c2a","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.1.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-UNPeG0SDBVyVgec9J2sdFCM5HYwQEZ0umZr1XjHvxzpNX6rX+4jvXQIrnGXFGe/X8hVQ4+T1muPiVyvSGdo3Lw==","shasum":"1d31b61b96357498e4d4a1148a3426ffeb44faa1","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.1.0.tgz","fileCount":9,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX1GPiwUdvXriKRnJ4Crj2XDX7+UUz/aWS+PLPfHZFTgIhAMHQctrASUejagVPFOz/42H8BdN4ZrKPnN8zQciMcSLw"}]},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.1.0_1629495597967_0.38944028485694093"},"_hasShrinkwrap":false},"1.2.0":{"name":"fs-require","version":"1.2.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"dist/fs-require.js","scripts":{"lint":"eslint .","build":"rm -rf dist && tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"devDependencies":{"@pvtnbr/eslint-config":"^0.4.1","@types/jest":"^26.0.24","@types/node":"^15.14.9","es-jest":"^1.2.0","eslint":"^7.32.0","esno":"^0.5.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","memfs":"^3.2.2","typescript":"^4.4.4"},"eslintConfig":{"extends":"@pvtnbr/eslint-config"},"gitHead":"acd30431731808417938daed769b319f1dda1b97","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.2.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-P7nnaPgRFkYGlpV1EftXPm1CRvecpjKYWQhR2cjEDj3/tsUOurOPG0FJj/r5GkjI1N0DDb8fZzAWkJ1tl6aXFA==","shasum":"4d4def2c90aa8271ccfcef036c3a9c5939a48cf3","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.2.0.tgz","fileCount":9,"unpackedSize":12172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4//MqeoISXsvktgn1EPZ5GqE/WTOdc96W3QQdGQaB2AiBmMaDbHVIR5h21gMJAeD8V/WTiJ7iNDDSAMAYtWEAqAw=="}]},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.2.0_1635051380395_0.8119115392878911"},"_hasShrinkwrap":false},"1.3.0":{"name":"fs-require","version":"1.3.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"dist/fs-require.js","scripts":{"lint":"eslint .","build":"rm -rf dist && tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"devDependencies":{"@pvtnbr/eslint-config":"^0.4.1","@types/jest":"^26.0.24","@types/node":"^15.14.9","es-jest":"^1.2.0","eslint":"^7.32.0","esno":"^0.5.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","memfs":"^3.2.2","typescript":"^4.4.4"},"eslintConfig":{"extends":"@pvtnbr/eslint-config"},"gitHead":"00c7a7f641b8d79482e50a2e6258845eda6336d0","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.3.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-7sgCX+AxvRYndGhsHQcHlHNfNuKVBDnxGmE2X7elfu1MW2Ty6kx9Lvs+DZymcrIQOhMIGzs82S/C0TPUNgl2Pw==","shasum":"023d9294d7869ec8a4049f70aa47fb6dc93e16a7","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.3.0.tgz","fileCount":9,"unpackedSize":12325,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfaOez+dFSvSlciUOPawb0A0XP8IB+F9Ih5Kr27FQXVAiBkRsGp4YWaRxsl9YRUGdxGx3zHVb3n0g/jY+BO1YYWXg=="}]},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.3.0_1635051756067_0.674465565658708"},"_hasShrinkwrap":false},"1.4.0":{"name":"fs-require","version":"1.4.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"dist/fs-require.js","scripts":{"lint":"eslint .","build":"rm -rf dist && tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"npm run build && lint-staged && npm test"}},"lint-staged":{"*.{js,ts}":["eslint","jest --bail --findRelatedTests"]},"devDependencies":{"@pvtnbr/eslint-config":"^0.4.1","@types/jest":"^26.0.24","@types/node":"^15.14.9","es-jest":"^1.2.0","eslint":"^7.32.0","esno":"^0.5.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","memfs":"^3.2.2","typescript":"^4.4.4"},"eslintConfig":{"extends":"@pvtnbr/eslint-config"},"gitHead":"342b36b9f57c0df4e68805f7dc509b5b15d6cdc0","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.4.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ZytCzc6QAE0lprblNErZJuDVNoT0JPRSBCUXIMrIB0mLlwcAppbE5fqUyqC8zhgrrR3+whvpKLxOqtk8EnSbeA==","shasum":"2e48b49885d2f8aef7cc3b4cc917e53c767b5630","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.0.tgz","fileCount":13,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMUgDU7QSqNDyRfEP63fNnWniCPSudhD915zyOGHDTPAiBAEvBHfANRtHRixJdxOK/f93Hl57GLVmTMtnRxqFqL2A=="}]},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.4.0_1635059847769_0.7410717411446908"},"_hasShrinkwrap":false},"1.4.1":{"name":"fs-require","version":"1.4.1","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"imports":{"#fs-require":{"types":"./src/index.ts","development":"./src/index.ts","default":"./dist/index.mjs"}},"gitHead":"c5ae322925d5f7c62055671252975f4c5c1cdad3","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.4.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BIbxbqksdYkk/Hsi57blyMn0num18dJ5Dh2S7Dfriamiq8MX58Mv+TdDfRdmomzeWfhQAgTeNQiphPAROpT1sw==","shasum":"c3763dfdc01ebfe21ce56102a7e7241d7e2a2196","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.1.tgz","fileCount":6,"unpackedSize":10476,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCY9Dd78LYeHWJ1MDcr8oSaONIZP2hvpPJRW+LzYrrBwIhANjeE8BCMFvjJHFlCmdk6ZMGFZR3PxGoIWfXd2R6j+Y0"}],"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"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.4.1_1669706871862_0.6617402762445954"},"_hasShrinkwrap":false},"1.4.2":{"name":"fs-require","version":"1.4.2","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"imports":{"#fs-require":{"types":"./src/index.ts","development":"./src/index.ts","default":"./dist/index.cjs"}},"gitHead":"93c9f2030bb808d06a16c0fedc05d43d3e70fe56","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.4.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fC9qtpGiFqLwScjlY0citpwB2ClVonDweFYkPboumFncDoKQDojTkWqk9V6cBoCVwMzPcDNid2c9JGO05qqEbg==","shasum":"24d86530c9a363f8a70e458d42f25d490c1e047e","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.4.2.tgz","fileCount":6,"unpackedSize":10708,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJXUFAu7Nmw4oNb4NP3eS0WFNIZgpq5CGsks7Y9cJc4AiEA3IsstQkxca9XDcMYpsfM27eUp3D1m7+bpx6qO6LiJgM="}],"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"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.4.2_1669818999147_0.5314989285852381"},"_hasShrinkwrap":false},"1.5.0":{"name":"fs-require","version":"1.5.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"imports":{"#fs-require":{"types":"./src/index.ts","development":"./src/index.ts","default":"./dist/index.cjs"}},"gitHead":"9fa216d429c39731a3fd130ddb9247a7cc54017c","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.5.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-TguC+1YCkfBeohSKz/CKjArD0zry2ns0aqejCLVncy2ZHpCM9hJqpuzBu0EgzEPKRgL8CLNmw0Jpmi+m7gtaDQ==","shasum":"8ce2dde7ae881647b63e7439f2652fb540decac7","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.5.0.tgz","fileCount":6,"unpackedSize":10719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzRW8X+Cf1+VHEExchM2VuxQttyo74VbTPgXxvwFRGYAiBgdSENwEHOKpnu9fJ9pnp1G3xaW5DPt7UOTkcY4OkA6g=="}],"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"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.5.0_1669879513505_0.14050226993361714"},"_hasShrinkwrap":false},"1.6.0":{"name":"fs-require","version":"1.6.0","description":"Create a require() function from any file-system","keywords":["fs-require","fs","require","memfs","testing"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"funding":"https://github.com/privatenumber/fs-require?sponsor=1","author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"imports":{"#fs-require":{"types":"./src/index.ts","development":"./src/index.ts","default":"./dist/index.cjs"}},"gitHead":"5c0e97a85c2ecad42ee947330e79155d949ebcb5","bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"homepage":"https://github.com/privatenumber/fs-require#readme","_id":"fs-require@1.6.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-zk5lFDV09Ef+CwOuPI/Q46lNdyzypPH/dB4Ywnyt40l2yqe5Z8ZJBGFaaYHwOwXAtKJEW4lSsn6V26erlEXVGA==","shasum":"008844621dffcace3a354e2ab998c969f16a779b","tarball":"https://registry.npmjs.org/fs-require/-/fs-require-1.6.0.tgz","fileCount":7,"unpackedSize":11495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDt7YDfhpilG7YtxVz4pCn1f6cto4A7O99BEGZoG2yiSAiEAjMWeVUj1xUzYjJMptd4HNKJtH7EZV6/NJSEjSs41bcY="}],"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"},"_npmUser":{"name":"hirokiosame","email":"hiroki.osame@gmail.com"},"directories":{},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-require_1.6.0_1670251002745_0.22856495653904907"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-23T23:52:48.807Z","1.0.0":"2021-05-23T23:52:48.940Z","modified":"2022-12-05T14:36:42.995Z","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"},"maintainers":[{"name":"hirokiosame","email":"hiroki.osame@gmail.com"}],"description":"Create a require() function from any file-system","homepage":"https://github.com/privatenumber/fs-require#readme","keywords":["fs-require","fs","require","memfs","testing"],"repository":{"type":"git","url":"git+https://github.com/privatenumber/fs-require.git"},"author":{"name":"Hiroki Osame","email":"hiroki.osame@gmail.com"},"bugs":{"url":"https://github.com/privatenumber/fs-require/issues"},"license":"MIT","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\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).\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"}