{"_id":"@peggyjs/from-mem","_rev":"4588273","name":"@peggyjs/from-mem","description":"Load a string as if it was an esm or commonjs module with a given filename.","dist-tags":{"latest":"3.1.3"},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"time":{"modified":"2026-04-10T16:38:56.000Z","created":"2024-02-17T22:35:07.864Z","3.1.3":"2026-02-28T05:15:25.953Z","3.1.2":"2025-12-15T16:11:14.761Z","3.1.1":"2025-08-05T07:09:35.541Z","3.1.0":"2025-07-15T14:13:51.724Z","3.0.3":"2025-07-14T22:19:11.720Z","3.0.2":"2025-07-13T10:45:10.313Z","3.0.1":"2025-07-13T10:19:01.772Z","3.0.0":"2025-07-12T23:25:47.667Z","2.0.3":"2025-07-11T08:48:13.527Z","2.0.2":"2025-07-10T23:23:23.214Z","2.0.1":"2025-06-20T22:11:45.755Z","2.0.0":"2025-05-01T05:18:30.573Z","1.4.0":"2025-04-11T17:27:52.393Z","1.3.5":"2024-10-10T16:16:06.995Z","1.3.4":"2024-07-31T22:32:38.570Z","1.3.3":"2024-07-16T21:51:00.684Z","1.3.0":"2024-02-27T20:28:49.817Z","1.2.1":"2024-02-26T15:31:42.289Z","1.2.0":"2024-02-26T15:17:37.750Z","1.1.0":"2024-02-24T23:25:50.623Z","1.0.0":"2024-02-17T22:35:07.864Z"},"users":{},"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"versions":{"3.1.3":{"name":"@peggyjs/from-mem","version":"3.1.3","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.4"},"packageManager":"pnpm@10.30.3","pnpm":{"overrides":{"c8@11.0.0>yargs":"18.0.0"}},"engines":{"node":">=20.8"},"gitHead":"8b04c3daded7ae3778043865281cb17a312daa97","_id":"@peggyjs/from-mem@3.1.3","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"shasum":"2956c3c68ec2e08e55178049a327009ee61541b8","size":9483,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.1.3.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a3645791-ae50-4125-b5b2-f8419fe4a608"}},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.1.3_1772255725808_0.9197346277060334"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-28T05:15:25.953Z","publish_time":1772255725953,"_source_registry_name":"default","_cnpm_publish_time":1772255725953},"3.1.2":{"name":"@peggyjs/from-mem","version":"3.1.2","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.3"},"packageManager":"pnpm@10.26.0","engines":{"node":">=20.8"},"gitHead":"28a07a16259c2d6990917f6d12e1025ae36754e6","_id":"@peggyjs/from-mem@3.1.2","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"shasum":"dc9dc48234240c602baaf126d9a3021daab9e5b2","size":9444,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.1.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a3645791-ae50-4125-b5b2-f8419fe4a608"}},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.1.2_1765815074587_0.0029292146339925385"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-15T16:11:14.761Z","publish_time":1765815074761,"_source_registry_name":"default","_cnpm_publish_time":1765815074761},"3.1.1":{"name":"@peggyjs/from-mem","version":"3.1.1","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.14.0","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.1.1","gitHead":"d6cfc91ab8506403dd7bbb5270d84040dd115ec5","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"shasum":"29d1f8f328242a0265d5e8d3c4081e0bb242bef4","size":9434,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.1.1.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.1.1_1754377775377_0.6515829067520456"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-05T07:09:35.541Z","publish_time":1754377775541,"_source_registry_name":"default","_cnpm_publish_time":1754377775541},"3.1.0":{"name":"@peggyjs/from-mem","version":"3.1.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.1.0","gitHead":"17371ba42ab0b3f975a9858dd21511ff8d396030","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"f17caa1ad0e00924fca4e639a08e03be8bf00c84","size":9434,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.1.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.1.0_1752588831517_0.35067286914834384"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-15T14:13:51.724Z","publish_time":1752588831724,"_source_registry_name":"default","_cnpm_publish_time":1752588831724},"3.0.3":{"name":"@peggyjs/from-mem","version":"3.0.3","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.0.3","gitHead":"9cf165a7f78e2dba4fbd9fc96f5feda1c2d74389","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"b4178196dc0a68d61e89c95b8df6c397b06139b9","size":9310,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.0.3.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.0.3_1752531551522_0.23183561713025758"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-14T22:19:11.720Z","publish_time":1752531551720,"_source_registry_name":"default","_cnpm_publish_time":1752531551720},"3.0.2":{"name":"@peggyjs/from-mem","version":"3.0.2","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.0.2","gitHead":"4293ab435f663b76f0c83933bf1171cfc949a451","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"8184de5de20857b3853dd6487ba93d3f61e4c30e","size":9260,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.0.2.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.0.2_1752403510168_0.27865130175883857"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-13T10:45:10.313Z","publish_time":1752403510313,"_source_registry_name":"default","_cnpm_publish_time":1752403510313},"3.0.1":{"name":"@peggyjs/from-mem","version":"3.0.1","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.0.1","gitHead":"7611f52f21d1ec5a73204c9ae1be43df79f48b5a","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"da7326e70704729377fef11c7b3d69fcd26e5e11","size":9384,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.0.1.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.0.1_1752401941550_0.5033791885400425"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-13T10:19:01.772Z","publish_time":1752401941772,"_source_registry_name":"default","_cnpm_publish_time":1752401941772},"3.0.0":{"name":"@peggyjs/from-mem","version":"3.0.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"./lib/index.js","types":"./types/index.d.ts","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@3.0.0","gitHead":"19e0b54609c7fa6579521d359cd15d5ca178c4cf","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"e50df3604cc819d359620b323762fc264beab35b","size":9390,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-3.0.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_3.0.0_1752362747483_0.11572952209590626"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-12T23:25:47.667Z","publish_time":1752362747667,"_source_registry_name":"default","_cnpm_publish_time":1752362747667},"2.0.3":{"name":"@peggyjs/from-mem","version":"2.0.3","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20"},"_id":"@peggyjs/from-mem@2.0.3","gitHead":"b682817c913ddecc85e428615f2b4c04d78ff119","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"6ce9bcde4ffbb1900f53e545c467d6b1ad781181","size":5982,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-2.0.3.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_2.0.3_1752223693324_0.7416109362751508"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-11T08:48:13.527Z","publish_time":1752223693527,"_source_registry_name":"default","_cnpm_publish_time":1752223693527},"2.0.2":{"name":"@peggyjs/from-mem","version":"2.0.2","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.13.1","engines":{"node":">=20"},"_id":"@peggyjs/from-mem@2.0.2","gitHead":"f40a7d2da6223e5c4649c9006542d0b2b5a91d34","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"shasum":"583a53e385dd064bff435a11fc535921fb5b63c8","size":5978,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-2.0.2.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_2.0.2_1752189803024_0.7355316407876191"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-10T23:23:23.214Z","publish_time":1752189803214,"_source_registry_name":"default","_cnpm_publish_time":1752189803214},"2.0.1":{"name":"@peggyjs/from-mem","version":"2.0.1","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.2"},"packageManager":"pnpm@10.12.1","engines":{"node":">=20"},"_id":"@peggyjs/from-mem@2.0.1","gitHead":"3b5fd4df33a7c297f2be69b52171133ab0dd6d34","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"shasum":"b5eb397b55ed0f202caf0b92a340871a185c9803","size":5955,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-2.0.1.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net","actor":{"name":"hildjj","email":"joe-github@cursive.net","type":"user"}},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_2.0.1_1750457505585_0.7857868141065814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-20T22:11:45.755Z","publish_time":1750457505755,"_source_registry_name":"default","_cnpm_publish_time":1750457505755},"2.0.0":{"name":"@peggyjs/from-mem","version":"2.0.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.1"},"packageManager":"pnpm@10.10.0","engines":{"node":">=20"},"_id":"@peggyjs/from-mem@2.0.0","gitHead":"69d3f255ad0b87197fa455a8f8251a63d0ccfc0a","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"shasum":"b39b8c474c6c310b309477b0bc6b9ccf7fdf8fef","size":5954,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-2.0.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_2.0.0_1746076710381_0.9537836381485729"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-01T05:18:30.573Z","publish_time":1746076710573,"_source_registry_name":"default","_cnpm_publish_time":1746076710573},"1.4.0":{"name":"@peggyjs/from-mem","version":"1.4.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.7.1"},"packageManager":"pnpm@10.8.0","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.4.0","gitHead":"70818af7535c6d0c89f2f263318ab23c7bbb13d8","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"shasum":"906399fed9b4dbe048d766deb32563aaee362c8b","size":5957,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.4.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/from-mem_1.4.0_1744392472198_0.23152263976028054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-11T17:27:52.393Z","publish_time":1744392472393,"_source_registry_name":"default","_cnpm_publish_time":1744392472393},"1.3.5":{"name":"@peggyjs/from-mem","version":"1.3.5","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.6.3"},"packageManager":"pnpm@9.12.1","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.3.5","gitHead":"26699e6e4bdf3a62ecfb0c55610d9310e4b3c175","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"d6294c588517728f73cc6c091706e147f8824be0","size":5892,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.3.5.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.3.5_1728576966759_0.3005467943957181"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-10T16:16:06.995Z","publish_time":1728576966995,"_source_registry_name":"default","_cnpm_publish_time":1728576966995},"1.3.4":{"name":"@peggyjs/from-mem","version":"1.3.4","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test","ci":"npm run build && npm run lint && npm run test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.6.3"},"devDependencies":{"@peggyjs/eslint-config":"4.0.3","@types/node":"22.0.2","@types/semver":"7.5.8","c8":"10.1.2","eslint":"9.8.0","typescript":"5.5.4"},"packageManager":"pnpm@9.6.0","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.3.4","gitHead":"5f34faf8545d745aaac4888e5ac4ac1402b48e02","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"shasum":"430ebc635b2f8ebeeadbc796937bab89e15be2cf","size":6030,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.3.4.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.3.4_1722465158432_0.8963501887080596"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-31T22:32:38.570Z","publish_time":1722465158570,"_source_registry_name":"default","_cnpm_publish_time":1722465158570},"1.3.3":{"name":"@peggyjs/from-mem","version":"1.3.3","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test","ci":"npm run build && npm run lint && npm run test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/peggyjs/from-mem.git"},"dependencies":{"semver":"7.6.2"},"devDependencies":{"@peggyjs/eslint-config":"4.0.1","@types/node":"20.14.11","@types/semver":"7.5.8","c8":"10.1.2","eslint":"9.7.0","typescript":"5.5.3"},"overrides":{"@typescript-eslint/utils":"8.0.0-alpha.44","@typescript-eslint/parser":"8.0.0-alpha.44"},"pnpm":{"overrides":{"@typescript-eslint/utils":"8.0.0-alpha.44","@typescript-eslint/parser":"8.0.0-alpha.44"}},"packageManager":"pnpm@9.5.0","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.3.3","gitHead":"605f30f631b084bc71c3f61264d4c3b4196455a4","types":"./index.d.ts","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"homepage":"https://github.com/peggyjs/from-mem#readme","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"shasum":"869005b5870357e7c153c813b138a3df5ba190c7","size":6082,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.3.3.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.3.3_1721166660519_0.7226599667190681"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-16T21:51:00.684Z","publish_time":1721166660684,"_source_registry_name":"default","_cnpm_publish_time":1721166660684},"1.3.0":{"name":"@peggyjs/from-mem","version":"1.3.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","dependencies":{"semver":"7.6.0"},"devDependencies":{"@peggyjs/eslint-config":"3.2.4","@types/node":"20.11.20","@types/semver":"7.5.8","c8":"9.1.0","eslint":"8.57.0","typescript":"5.3.3"},"packageManager":"pnpm@8.15.4","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.3.0","gitHead":"9adad05f13f1e98c8814f0bffb11795f825abecd","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"shasum":"16470cf7dfa22fc75ca217a4e064a5f0c4e1111b","size":5969,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.3.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.3.0_1709065729607_0.10973502461659734"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-27T20:28:49.817Z","publish_time":1709065729817,"_source_registry_name":"default","_cnpm_publish_time":1709065729817},"1.2.1":{"name":"@peggyjs/from-mem","version":"1.2.1","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","dependencies":{"semver":"7.6.0"},"devDependencies":{"@peggyjs/eslint-config":"3.2.3","@types/node":"20.11.20","@types/semver":"7.5.8","c8":"9.1.0","eslint":"8.57.0","typescript":"5.3.3"},"packageManager":"pnpm@8.15.4","engines":{"node":">=18"},"_id":"@peggyjs/from-mem@1.2.1","gitHead":"1cc664d31cc860563743c82519ec98fd74e88780","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"shasum":"b83db5b439f1b02159fe47f5c9684bd1ee244edd","size":5611,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.2.1.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.2.1_1708961502142_0.10157293025414882"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-26T15:31:42.289Z","publish_time":1708961502289,"_source_registry_name":"default","_cnpm_publish_time":1708961502289},"1.2.0":{"name":"@peggyjs/from-mem","version":"1.2.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","dependencies":{"semver":"7.6.0"},"devDependencies":{"@peggyjs/eslint-config":"3.2.3","@types/node":"20.11.20","@types/semver":"7.5.8","c8":"9.1.0","eslint":"8.57.0","typescript":"5.3.3"},"packageManager":"pnpm@8.15.4","engines":{"node":">=20.8"},"_id":"@peggyjs/from-mem@1.2.0","gitHead":"f381ff60e3d234e4835d744dc27ba7bccb20e455","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"shasum":"3f477472409ef61c93d266426ffb06f8cabe7138","size":5574,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.2.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.2.0_1708960657603_0.7270864420352123"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-26T15:17:37.750Z","publish_time":1708960657750,"_source_registry_name":"default","_cnpm_publish_time":1708960657750},"1.1.0":{"name":"@peggyjs/from-mem","version":"1.1.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","devDependencies":{"@peggyjs/eslint-config":"3.2.3","@types/node":"20.11.20","@types/semver":"7.5.8","c8":"9.1.0","eslint":"8.57.0","typescript":"5.3.3"},"packageManager":"pnpm@8.15.3","engines":{"node":">=20.8"},"dependencies":{"semver":"7.6.0"},"_id":"@peggyjs/from-mem@1.1.0","gitHead":"fbbe9f95329bfbd2ba2182c329e985aca7fb0b94","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"shasum":"dab6c409753da27cb8e7a651599eeae7bef4b8b3","size":5235,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.1.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.1.0_1708817150464_0.5068792675449814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-24T23:25:50.623Z","publish_time":1708817150623,"_source_registry_name":"default","_cnpm_publish_time":1708817150623},"1.0.0":{"name":"@peggyjs/from-mem","version":"1.0.0","description":"Load a string as if it was an esm or commonjs module with a given filename.","main":"index.js","scripts":{"build":"tsc","lint":"eslint .","test":"c8 node --stack-trace-limit=1000 --experimental-vm-modules --test"},"keywords":["vm","module","esm","eval"],"author":{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},"license":"MIT","devDependencies":{"@peggyjs/eslint-config":"3.2.2","@types/node":"20.11.19","@types/semver":"7.5.7","c8":"9.1.0","eslint":"8.56.0","typescript":"5.3.3"},"packageManager":"pnpm@8.15.3","engines":{"node":">=20.8"},"dependencies":{"semver":"7.6.0"},"_id":"@peggyjs/from-mem@1.0.0","gitHead":"105a6d4816a44cf9b52ade2b372db64afa427a47","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"shasum":"def40e4d98ce3b013f94d2c7fa540d9b5d9642f2","size":5039,"noattachment":false,"key":"/@peggyjs/from-mem/-/@peggyjs/from-mem-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@peggyjs/from-mem/download/@peggyjs/from-mem-1.0.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"charlespick","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from-mem_1.0.0_1708209307709_0.9587842895463456"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-17T22:35:07.864Z","publish_time":1708209307864,"_source_registry_name":"default","_cnpm_publish_time":1708209307864}},"readme":"# @peggyjs/from-mem\n\nExecute some text in memory as if it was a file with a given name, so that all\nof the imports/require's happen out of that directory's associated\nnode_modules directory or relative to where the file would have been.\n\nThis is NOT intended to be a security boundary.  In particular, all files\nwill be required or imported through the node module cache.\n\nThis code was originally a part of [peggy](https://peggyjs.org/), but was\nrefactored out when it was needed in a related project.  Several ideas in this\ncode came from the\n[module-from-string](https://github.com/exuanbo/module-from-string) and\n[eval](https://github.com/pierrec/node-eval) modules -- thanks to those authors.\n\n## Installation\n\n```sh\nnpm install @peggyjs/from-mem\n```\n\n## Usage\n\n```js\nimport fromMem from \"@peggyjs/from-mem\"; // or require(\"@peggyjs/from-mem\")\nconst consoleOutput = {};\nconst result = await fromMem(`\nimport foo from \"../foo.js\"; // Loads ./test/foo.js\n\nconsole.log(\"hi\");\nexport async function bar() {\n  return await foo() + 2;\n}\n`, {\n  filename: path.join(__dirname, \"test\", \"fixtures\", \"test.js\"),\n  format: \"es\",\n  consoleOutput,\n  exec: `\nconsole.log(\"there\");\nconst b = await IMPORTED.bar();\nreturn b + arg;\n`;\n  arg: 12,\n});\n\n// consoleOutput.out === \"hi\\nthere\\n\"\n```\n\n`filename` is the only required option, unless you are processing an ES6\nmodule and your runtime does not have --experimental_vm_modules set.  In that\ncase, you must pass in an `exec` option, and may pass in an `arg` also.\n\nFull [API docs](http://peggyjs.github.io/from-mem/) are available.\n\n## Caveats\n\n- This module has a strong requirement for node 20.8+ at runtime when using\n  the es6 format, due to a bug that crashes node in node's vm module that got\n  fixed there and in 21.0.  There is a runtime check to prevent the crash.\n\n[![Tests](https://github.com/peggyjs/from-mem/actions/workflows/node.js.yml/badge.svg)](https://github.com/peggyjs/from-mem/actions/workflows/node.js.yml)\n[![codecov](https://codecov.io/gh/peggyjs/from-mem/graph/badge.svg?token=CWQ7GSH0ZI)](https://codecov.io/gh/peggyjs/from-mem)\n","_attachments":{},"homepage":"https://github.com/peggyjs/from-mem#readme","bugs":{"url":"https://github.com/peggyjs/from-mem/issues"},"license":"MIT"}