{"versions":{"0.1.0":{"name":"esmoduleserve","version":"0.1.0","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1"},"gitHead":"74e5e8920989ffa7c5b32a8f3772780c35f8b59b","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_id":"esmoduleserve@0.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.13.4","_npmUser":{"name":"anonymous","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-mszOPojO4hmw5xoYtvTn2NfRXKt6XzLFCIAPJBbjpGQLQgEhREri3HCyA8U70Pa+pw6QxMHZVJTqilrqbFQ52A==","shasum":"2b36ada18c1c68bdac9c6364b3204597d3f5fb53","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.1.0.tgz","fileCount":5,"unpackedSize":10028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWSckCRA9TVsSAnZWagAAJ9gP/1Cnmd/9x/mbV7m2UnD/\ntFa2TRvSdW4jkJl5wc7SJWjnPwGGqyzMCOgIJRatEbmgH3Dc7FTpJESSmI1x\nsTMmxZqJ/D0rcSB3qSUSLpu0S+XPvCjdW7Br5N8TRz5ithOhua/rmJS8X8GA\n50RLimNLMNN3+GkTtKW4JV80Uh2Qwmq/fRO32WVtnTRFf6grmrt7PYV6vAxU\nUbMvB/C55GfACxoqxKveqNMJdd6DnNdICjMa1pCvvDvgGbKka0NZpU/VJqLg\nIhpauROPABfpopvJwE0XyWQKBfAWeGoWS0lvBLiqR0z7oWMEcviPkIHRvHnx\njhvgJbpFTIm6XgE5NgrUjaHfGpam2kRdDh9w5M1wISyZ9i/64McUMJFXMoHR\nqVo62PPO7wwYFdVY9q3FNfM2yg8E9V7QsQT5YZnVh0TuqgS64CVX2HkvOcgA\n5rbZxNJWb6QQm55nJWM4UzUwlij8hclEtTmGyJEUMAHHTxzIhU2o7MIIYilU\ntHQ3g9kvLLmptpLQJeIC1Br4GaA0e8UcWaDpJboWvuC7uqTqXUsYjZDIEndd\nRc/t3Fs3Iq12oHKMF5Jh6kU5gsyxWcST4ZOXc1xoJV4RjKnfosZw2uGzl+SK\nAQDXwmi10xxdue97tJ7YaS1brtJjYrJbXTndVsTo3T8N9skOulzpvtRm2Y6U\n21W2\r\n=ENpU\r\n-----END PGP SIGNATURE-----\r\n","size":4541},"maintainers":[{"name":"anonymous","email":"marijnh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esmoduleserve_0.1.0_1582901027876_0.9753598283462193"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T18:56:01.450Z","contributors":[]},"0.1.1":{"name":"esmoduleserve","version":"0.1.1","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1"},"gitHead":"1d24bb34a192239b4f2e345b99d37386ee8eaaf0","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_id":"esmoduleserve@0.1.1","_nodeVersion":"12.10.0","_npmVersion":"6.13.4","_npmUser":{"name":"anonymous","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-Ij6GpKbByViAKrsju/o6cA5roFWwjEyuEtaKG8hhaX74MQ5kB1ZnjVtuM+c/TbFMj6jlUG/+4bAX5wY35HSpGw==","shasum":"412bef2ecc5e6fd57db57d9bb1942aa4908d04eb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.1.1.tgz","fileCount":5,"unpackedSize":10053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXQqECRA9TVsSAnZWagAAvnsQAKICjWbn4SFBTqCA3dOI\nk6TLn56GgD/mWSKq7x/Ny3XsGJ4+NrvjMd26jdM1qvb9yrW9SFsG+UZdTEyB\nnfvkSGMCHsH2ihHfdxhTuXMRiFujrrlbjDBwoU6IOdkMraKPoOXbSDRAo+qF\ngnFsyaPARKFsCx8DQExJ1zmpNXLk4aZgp+EOHVGfZ3m1eECKwaNe3XBhzD49\n1z196ajvJtxGeWNAkc6QmCloPeOHPVb8ChPE4xe5Oz93BXS7s8GJ8avfjgeM\nYYiYN1uD7FAMLkod89zJx87OZbpoO7IrMW6oS8NW9mLx2/ScM85QzrQurvSi\njXC5Pjjv/n2MkTh1jo3fwegQHujYhI8FQuwTryto/fvJmG1Lks/m32GSwtrh\nYbi0DIaeRSiGZyeTxydZ3wjDv7yc7yMPYQu7HyWrnODk+MNQ9PqnXqG2kxFp\nsesu+GQMDCbaEIMFfoxgIuyCV9o0tSo1qHgrI7wN7zmBAgpwqbfQyEAzr0kp\nXtdEsmsAOXv4p9Ps59a77ge9tVJOopXQvvs5L77VORM1oDtSF1ROHTgEpg1o\nOGcZ69O5yh2VEwAqD8m9UB2GLOmObGFj6iGDFfqEtUZwS9MOqHoqKILix98E\nxApnqeJ2Pgxlsotfo57t5+R69kPHo1Wb84LqxpaYZr2f7XHP3am8GotZuplL\ntv6R\r\n=3xzf\r\n-----END PGP SIGNATURE-----\r\n","size":4562},"maintainers":[{"name":"anonymous","email":"marijnh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esmoduleserve_0.1.1_1583155843555_0.6096569455693361"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T18:56:02.317Z","contributors":[]},"0.1.2":{"name":"esmoduleserve","version":"0.1.2","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1","acorn":"^7.0.0","acorn-walk":"^7.1.0"},"gitHead":"c2db5d3f5ddabdb8f5e90ee9b840f9a7d39461e8","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_id":"esmoduleserve@0.1.2","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","_npmUser":{"name":"anonymous","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-+E8N+5Shkgk53mqlitiYTmAndF94JN9a5u7KmVg9Ab+GarribkuUndbRMriZfPzFE8Tqxab9vNBTi0Z94CNnnw==","shasum":"c293b64335294d14aafbc70c35c54321c5ded925","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.1.2.tgz","fileCount":5,"unpackedSize":10256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehIx5CRA9TVsSAnZWagAAKi4P/1Sls6vPgfnqgEizKJYD\na9WYo1a+cuif5MTLelMPFZfQsjyqHieVrf1zCc1F2o7Bas+JF7aFxL61wdOS\n2a8Poyg9m/qVc+BIuL7PYKlUJ6eUuiMmb2/gFhuULjEZwDRknRb/nETsxqYD\ngFExKBZopKTh7m+cgQ4oeamkzxDIiWEnMjvpOL0PsuFRkghYYZGcTrc87v/f\n81Zv/ZQO9Y4ZKaBhlUPIiGeSszroa9raTSqZIZOZALTwC09WE51HG/GqeybC\nGq1pKMJ/mT5zQ1bDtJ0wJSfxs1g9u1ABt3scBSYRx8/x4Tp455invMYay80s\nrGAcLbTe0tXH8kGL9nGUwe8RUctjJbdYIuWeLYxfMT8wFeEXJLYSxOoAcLoW\nrLdTNtpcCbkQ1hy+AhRe5coA3LvhFrauLyjwx2EdmjskZQK7yEyOz63+4Xfk\nsBnRlXTYx8jRinSu9iBvBfRK5qapczgYBsnDMQFKjYWTuGYxE36olumgpPKB\nynV3tlbw2oVBgV58ZXXFu4mEyob4RVGOSkccSzSb7mq0OYPIU35XnRadY83L\n4hgJ78hAQDz7ASlGTZdqQ9dsYccaESXcHRpPQ5NSCmCiNhPwVQb8CTKi6Pzv\n4M5Kt53OCsEw/cDBICu10epDQYyEuzyt+fCviwy0Sm07XM/1tuZqHNH1VmdT\nCVFm\r\n=S5ox\r\n-----END PGP SIGNATURE-----\r\n","size":4593},"maintainers":[{"name":"anonymous","email":"marijnh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esmoduleserve_0.1.2_1585745016647_0.09626998475037918"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T18:56:03.215Z","contributors":[]},"0.2.0":{"name":"esmoduleserve","version":"0.2.0","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1","acorn":"^8.0.4","acorn-walk":"^8.0.0"},"gitHead":"1fad1eb1fcb242f94fbf1588bb92ee763b3d0213","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_id":"esmoduleserve@0.2.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.8","_npmUser":{"name":"anonymous","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-vg1j7fzKZUFR5TCsYQ3PABfBRMRi6V9K7mxcRh2MftO3gwAHBwYaPHtLHFDsKVSxdHmpu/GgT37lsRT+vezaKQ==","shasum":"01ed56cbee408f624641dab0b2916a54407c891e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.2.0.tgz","fileCount":5,"unpackedSize":10596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0kxxCRA9TVsSAnZWagAAcRsP/jK4Gc+ZKZKre+iHDigN\nbxWxfFnOETxj2ecYQ/uEjNQRTKid/QHwtW9TiTaXq3i9vnigE98Fz0d5o9yM\nkfMplNlZVI90yp9n1Cnv5u4Xb7BrE5DCRk67y2pvVbZ/ftD66epSfmFH/YYj\nStL/1HrMTHINo9RTgSmWP81Bqy6/jLHac3o58+AttZVYQfpwxoP8Yzycl4jD\nV2QbBMwU+/exz7GuLC3i9EbOcMvmkgMWOE0dXYnN8mvOx4ew+SgiTOH8r5P3\nNPw/Q6d7GYSCspuwQmTvrCbrZ2DlBmiWmJGj7oiYVLzQMAYq5rvx6Z2Mg7e8\nQ3js2v3955fM4GLPSbh4LhRFQIfVo65Sg/VKQ6kiJuhOxYzbnJb2Fjd2WcXf\nRSLrs5H7SI8o1v0z7hG4apn+Vif/9FXVALM9m4ZeHSImn26nXW9U2Gv7S7DJ\nA6Fh3smVI13gmdoOFt7mQiDuGzcfTTessJxrWJY+PaAb2miXoWKDz+dyBEM/\nNVAgO0ZOY7co9d/zl5DF17Nu2NeqCiYn8ol6Hv4v3n8yxootcmmmUaCbw+R5\noyBuTig7VUFtEG+DBGj4Qflv0y6mbZqfrOPZZxOhU9P8TgJEfbH4zzHl4Ak8\nUchlUQIuE7v2lxwf+g3Qg3xTUNFysqeNij2GTSaufRAKXJlk5iNNOLVg+jaO\n57f3\r\n=5xRY\r\n-----END PGP SIGNATURE-----\r\n","size":4659},"directories":{},"maintainers":[{"name":"anonymous","email":"marijnh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esmoduleserve_0.2.0_1607617649336_0.764783522484358"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T18:56:04.113Z","contributors":[]},"0.2.1":{"name":"esmoduleserve","version":"0.2.1","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1","acorn":"^8.0.4","acorn-walk":"^8.0.0"},"_id":"esmoduleserve@0.2.1","gitHead":"152ae0bdfaa94bf7fc7966278170c8cd7592ac9e","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-LeuOiyyCSc2sG0Clx9A/tzApfP2gz2/YPE7IBSQwP2JPZKm8S0WZ1b1DfH9eCYXo469k81od3lFvFloYJNpTYA==","shasum":"4b012bda791469ed918b4456333c84a629f3e9e4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.2.1.tgz","fileCount":5,"unpackedSize":11001,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFRan4CkY5GYz167AwVYkx29p/Uwqbk2QdxHXxoakk7wIgUMjGOW8WGpQms+laZCNVU4JDi7ezf0VLE0p9Bkm4p8M="}],"size":4797},"_npmUser":{"name":"anonymous","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"anonymous","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esmoduleserve_0.2.1_1707308476875_0.24063647908429697"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-07T12:21:17.011Z","publish_time":1707308477011,"_source_registry_name":"default","contributors":[]},"0.3.0":{"name":"esmoduleserve","version":"0.3.0","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","dependencies":{"resolve":"^1.15.1","serve-static":"^1.14.1","acorn":"^8.0.4","acorn-walk":"^8.0.0"},"_id":"esmoduleserve@0.3.0","gitHead":"d7dcc86a7cb1287cf5d53e8469d03e8f4b4a6990","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-CzSLmEm5J3FWda22KXOk9ZS0c2x4KE8gPwPiao6VKZjry9EJNn6b4p5xzCX9SsHIekpoRRKn2U+x5IbROuxmLA==","shasum":"c1463c53a9d5d93ec400cc95289b6b24c281fe0a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.3.0.tgz","fileCount":5,"unpackedSize":11083,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIACioStYU8be1egV6v18iCZRTcj3Q9NxyJxvJEs+X6uXAiEAt3aE2vVoH3Sao1KFL5JbFI/pzSln1mZK4GKBvhboE/s="}],"size":4826},"_npmUser":{"name":"anonymous","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"anonymous","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esmoduleserve_0.3.0_1765386215485_0.06501624561990216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-10T17:03:35.642Z","publish_time":1765386215642,"_source_registry_name":"default","contributors":[]},"0.3.1":{"name":"esmoduleserve","version":"0.3.1","description":"Serve ES modules over HTTP, rewriting imports","main":"index.js","bin":{"esmoduleserve":"index.js"},"repository":{"type":"git","url":"git+https://github.com/marijnh/esmoduleserve.git"},"keywords":["module","es module","http","development","dev server"],"author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","dependencies":{"acorn":"^8.0.4","acorn-walk":"^8.0.0","import-meta-resolve":"^4.2.0","serve-static":"^1.14.1"},"gitHead":"9c02e07f048ddf6bd30dd494880f938f960365c1","_id":"esmoduleserve@0.3.1","bugs":{"url":"https://github.com/marijnh/esmoduleserve/issues"},"homepage":"https://github.com/marijnh/esmoduleserve#readme","_nodeVersion":"22.20.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-4JKY1coDe8hLNtcIV9sySXEIXVAd7pSbSZhieVIfMGIHyZbMJlwKNXvIZrUPY6CRp/r5yI9pPwa5uqKRBkmW4w==","shasum":"fd9ce7953d85a35deb6380426af254a2ce76beed","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esmoduleserve/-/esmoduleserve-0.3.1.tgz","fileCount":5,"unpackedSize":10564,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAzRhEi5hBM3/j6zZ5p783g7WuTRGYtyuzZjGM7g/78KAiEA2m1cClT7VzyI5t+dQXoaN+3Q69KeMKzYPZfpgf73Sfo="}],"size":4652},"_npmUser":{"name":"anonymous","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"anonymous","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esmoduleserve_0.3.1_1765543540998_0.13861962607012734"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-12T12:45:41.148Z","publish_time":1765543541148,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.3.1"},"name":"esmoduleserve","time":{"created":"2022-01-28T00:11:15.009Z","modified":"2025-12-12T12:45:54.181Z","0.1.0":"2020-02-28T14:43:48.003Z","0.1.1":"2020-03-02T13:30:43.671Z","0.1.2":"2020-04-01T12:43:36.779Z","0.2.0":"2020-12-10T16:27:29.486Z","0.2.1":"2024-02-07T12:21:17.011Z","0.3.0":"2025-12-10T17:03:35.642Z","0.3.1":"2025-12-12T12:45:41.148Z"},"readme":"# esmoduleserve\n\nThis is a shim HTTP server for directly running ES6 modules with\nnon-precise import targets in your browser (without a bundling step).\n\nIt acts as a regular file server for a given directory, but exposes an\nextra top-level path, `/_m/`, to serve rewritten modules relative to\nthat directory. Any file requested through this path will have its\nimports (and re-exports) rewritten to point at precise resolved\nscripts paths, referenced through `/_m/`.\n\nResolution is done via the [node\nalgorithm](https://www.npmjs.com/package/resolve), but letting\n`\"module\"` or `\"jsnext\"` fields in package.json take precedence over\n`\"main\"`.\n\nIf some of the dependencies you load through this don't provide ES\nmodule files, you are likely to find an error about a missing import\non your devtools console.\n\nYou can specify module files from parent directories of the served\ndirectory using `/__` to stand in for `/..` in a `/_m/` path. By\ndefault, to avoid accidentally serving things you don't want to\nexpose, this is only allowed one parent directory deep.\n\n## Usage\n\nYou run the server for a given directory...\n\n    esmoduleserve demo/ --port 8080\n\nIt will start up an HTTP server on the given port, serving the content\nof the `demo` directory statically. If there's a module called\n`demo.js` in this directory, you can load it in an HTML file with a\nscript tag like this:\n\n    <script type=\"module\" src=\"/_m/demo.js\"></script>\n\nThe options recognized by the command-line server are:\n\n * **`--port`** to specify a TCP port to listen on. Defaults to 8080.\n\n * **`--host`** to specify a hostname to listen on. Defaults to\n   `\"localhost\"`.\n\n * **`--depth`** to specify how many parent directories should be\n   accessible. Defaults to 1.\n\n * **`--prefix`** to specify an alternative URL prefix for module\n  script URLs. Defaults to `\"_m\"`.\n\nThe `moduleserver.js` file exports this functionality as HTTP\nmiddleware. Usage looks something like:\n\n    const {ModuleServer} = require(\"esmoduleserve/moduleserver\")\n    const moduleServer = new ModuleServer({root: \"/some/path\",\n                                           maxDepth: 2,\n                                           prefix: \"_m\"})\n    \n    // In a server function\n    if (moduleServer.handleRequest(req, resp)) return\n\nThe `handleRequest` method handles only requests whose path starts\nwith the prefix. It returns true for such requests.\n\n## Source\n\nThis code is open-source under an MIT license. If you want to\ncontribute, create pull requests\n[on GitHub](https://github.com/marijnh/esmoduleserve/).","users":{}}