{"_id":"express-static","_rev":"24-e5469b2af3e8d9cf6c195bb60e80aeaa","name":"express-static","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"express-static","version":"1.0.0","keywords":["express","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.0.0","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/express-static","bugs":{"url":"https://github.com/song940/express-static/issues"},"dist":{"shasum":"d3b0bd15664ee5377b33738d431699e9fba932b3","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.0.0.tgz","integrity":"sha512-0ZCASq0RiRuMi5JrVtBEhgEdOMPv61TtYTt92SkRlD2cn65p3xtoKgwjKZIXJ8c4X4C5DHrBkxd8XxZfXgaCSA==","signatures":[{"sig":"MEYCIQDVT5nkLbd7GuBg+tERQSF5/1GU+UrBVWH0DWCD17OBMwIhAObFQ5O4UoYszBuRMrquxOs4YpXF74XLCerHcBAPnbfO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d3b0bd15664ee5377b33738d431699e9fba932b3","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"https://github.com/song940/express-static.git","type":"git"},"_npmVersion":"1.4.23","description":"","directories":{}},"1.0.1":{"name":"express-static","version":"1.0.1","keywords":["express","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.0.1","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/express-static","bugs":{"url":"https://github.com/song940/express-static/issues"},"dist":{"shasum":"6ebdc5ab4f5e8f3933f03e725fa351e38ee0ad28","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.0.1.tgz","integrity":"sha512-lhRYM3eJush3iso4npqyepQCQT0GmmjA9ODtKXpRK/lQ0qVeFifyYQLcP5vFhgZ95WFj1shEBuGcDPn8jrdDcQ==","signatures":[{"sig":"MEUCIHgy1Li1M3zS8LoCME5CgBsf5+8CzK68NfF6a0Az7MahAiEAymvSxHKlOTbTq+vo3dZRNsLKt0xJDOZA/9GGpgctwj8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6ebdc5ab4f5e8f3933f03e725fa351e38ee0ad28","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"https://github.com/song940/express-static.git","type":"git"},"_npmVersion":"1.4.23","description":"","directories":{},"devDependencies":{"express":"^4.9.6"}},"1.0.2":{"name":"express-static","version":"1.0.2","keywords":["express","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.0.2","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/express-static","bugs":{"url":"https://github.com/song940/express-static/issues"},"dist":{"shasum":"b49e62c00edbbf9c8f5e56d72c5688b88c87b53f","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.0.2.tgz","integrity":"sha512-ck/4bl4kXO260o1hW/kY0Jua9jf+OJATnXlRwBWlQN55qVnEAWlzIJBFtS9j3457mJT0ElfBXB2GVBZVtCUomA==","signatures":[{"sig":"MEQCIEyRg8EzbK8zGMXRmbIxLF86RXRXnBsbWPRuU7CLHNUUAiBWuFBlKrV+e5JK0eo2mRbrHqmdGnSxDi6dFVshSP+yIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b49e62c00edbbf9c8f5e56d72c5688b88c87b53f","gitHead":"67f04bce1b0adb95ce7ee91893c5b6ab2aae233e","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"https://github.com/song940/express-static.git","type":"git"},"_npmVersion":"1.4.23","description":"","directories":{},"dependencies":{"mime":"*"},"devDependencies":{"express":"^4.9.6"}},"1.0.3":{"name":"express-static","version":"1.0.3","keywords":["express","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.0.3","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/express-static","bugs":{"url":"https://github.com/song940/express-static/issues"},"dist":{"shasum":"17e5c932ac31ab8d6d9198f1cb303425cb2cb5bd","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.0.3.tgz","integrity":"sha512-nVzEphQ4Aq/XkpEy1iR4wLgzoVeEUyZ+TEccCjuipDkppKyfaQ1SCcGYdAeKW6o/7QqfOBnLGl6MSg1I/6f8hw==","signatures":[{"sig":"MEUCIQCV9fPLSJRVKJTYudUe5WfAYru76E7RxoFsVKLwQx+mkwIgUmrnzI9LGcdIYfQ4EPZGnqMNTA4n1xE1QhHjLZVbFfs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"17e5c932ac31ab8d6d9198f1cb303425cb2cb5bd","gitHead":"e87c77bcf176bc9ca8beaa1dee691ec52a09fd4a","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"https://github.com/song940/express-static.git","type":"git"},"_npmVersion":"1.4.28","description":"","directories":{},"dependencies":{"mime":"*"},"devDependencies":{"express":"^4.9.6"}},"1.1.0":{"name":"express-static","version":"1.1.0","keywords":["express","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.1.0","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/express-static","bugs":{"url":"https://github.com/song940/express-static/issues"},"dist":{"shasum":"9e01cf26e88506dbfd857f558db7eb29cef21397","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.1.0.tgz","integrity":"sha512-nmQ13Ed8P4LHGiOvhcPTVrLvvaT169VztK4hqPDvygoo4JCbi3XIfLdkgQ6d8vSmtRJWLqAP6YF3bWYpymJ3+A==","signatures":[{"sig":"MEQCIAOYlyzF1wclcMA/4qf+8WIhfqtGLxS1QE/8+P66J56lAiBPk7V/nnI8na+i+4cke5BCr4usJlDiVpZuviHXJWne1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9e01cf26e88506dbfd857f558db7eb29cef21397","gitHead":"08b934404e2fd10a19eb5bfc2df018f81f951ea5","scripts":{"start":"node example"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/express-static.git","type":"git"},"_npmVersion":"4.2.0","description":"serve static files for express","directories":{},"_nodeVersion":"7.5.0","dependencies":{"mime":"*"},"devDependencies":{"express":"*","express-log":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static-1.1.0.tgz_1489561633623_0.5789745161309838","host":"packages-12-west.internal.npmjs.com"}},"1.2.2":{"name":"express-static","version":"1.2.2","keywords":["kelp","static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.2","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static#readme","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"kelp-static":"bin/server.js"},"dist":{"shasum":"fd74bafc9dfa24cc3cf3bc90008cd331da9d0dab","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.2.tgz","integrity":"sha512-tLAvo8UJvWhWU4vID9XXniAQ5HHNhsW3vtNJvMbv+zK6JBY7DXJMw5L9P6IRLGVCH8jVdrQSkodaXa+s6KSI4Q==","signatures":[{"sig":"MEQCIApilvodZcfmD2j9lWudvnevhffZMNEmrmsQEBlDYVCeAiAq2VWQteAEDeqeviXZGh3NeOHwR9YZ1UOU1/6UMuwoKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"f3893b327ac05231f1b6662426f6d80746d93785","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"5.0.3","description":"serve static files for kelp","directories":{},"_nodeVersion":"8.0.0","dependencies":{"mail2":"latest"},"devDependencies":{"kelp":"*","kelp-logger":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static-1.2.2.tgz_1498747221980_0.5269824748393148","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"express-static","version":"1.2.3","keywords":["express","express-static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.3","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static#readme","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"express-static":"bin/server.js"},"dist":{"shasum":"1c0da30aeb9eaf1dd72d2501b632fd0971d8bf12","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.3.tgz","integrity":"sha512-Q7Mm8AZ+ZqFCXkBxjgMZlfigY3MBPA1iwFTD+dL1EwOFwk3MKrM+F4joycCFqjIonRZhMad5/XNFUbdmXNPM0A==","signatures":[{"sig":"MEUCIGEZ0Y0RvWT5wwOEgbFPnoEOHjqZEalH/T9A7onwjVUXAiEA8ZLQ7fLeeapcjV5ydFv7N/JvFRN+WSaEKDeNhI/C8cQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"bc1ee5a05d23fd36fe5eea0b94e0f984eb97d589","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"5.0.3","description":"serve static files for express","directories":{},"_nodeVersion":"8.0.0","dependencies":{"mail2":"latest"},"devDependencies":{"kelp":"*","kelp-logger":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static-1.2.3.tgz_1498747515212_0.6425599507056177","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"express-static","version":"1.2.4","keywords":["express","express-static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.4","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static/tree/express","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"express-static":"bin/server.js"},"dist":{"shasum":"effe53be83b1372e2c0e81e68aa8ae55af76f208","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.4.tgz","integrity":"sha512-97LeiOMMulUCNvoUpBwYv63c1uVGp7ij0w9ucB6R+7p950MC1PRwpJM2FR6ZM2OeCTesMXLitHQ4awq/eS69MQ==","signatures":[{"sig":"MEYCIQCfulmfZVwVq1I20caCemNXNYeEftH0gVK4tyKkEGTENQIhANHmPV98uvV0tZ/7QiecgUHTampFdfSTD0+aI/fKyXdw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"510f80a4214fb0ef78fba64e031162a4cd11b147","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"5.0.3","description":"serve static files for express","directories":{},"_nodeVersion":"8.0.0","dependencies":{"mail2":"latest"},"devDependencies":{"express":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static-1.2.4.tgz_1498748056577_0.250184110365808","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"express-static","version":"1.2.5","keywords":["express","express-static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.5","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static/tree/express","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"express-static":"bin/server.js"},"dist":{"shasum":"cc966d4c33884e9a1e6ba64b4b8d86aefa945cb1","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.5.tgz","integrity":"sha512-wBlWTmmEeiOidqAcIsYvrhdGgp4SpKcrZPkMGU1ykfmRhy7mu4gilVTAVgMEFwNZVXzttsbcHHw3meK0y79g7g==","signatures":[{"sig":"MEUCIBp5DlRNO8T1slwJ1qUOohyeK+4Oybjl3bqSllOMAXrjAiEA6lcF8iOdwsvjh/p1Mmq0EuiQUndPD+CCAWDvymk/mqs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"a2254933ba82c49d0ae65f95e1e9972b4f3910ca","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"5.5.1","description":"serve static files for express","directories":{},"_nodeVersion":"9.0.0","dependencies":{"mail2":"latest"},"devDependencies":{"express":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static-1.2.5.tgz_1509623345852_0.2231889166869223","host":"s3://npm-registry-packages"}},"1.2.6":{"name":"express-static","version":"1.2.6","keywords":["express","express-static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.6","maintainers":[{"name":"song940","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static/tree/express","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"express-static":"bin/server.js"},"dist":{"shasum":"567aab6ba808386936b8c17bb0a90f6f61d0db4f","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.6.tgz","fileCount":10,"integrity":"sha512-pmp8fSe+bCxGCTk5+X6HzIF2APYMvrAq3Y7sT/WOELc0JZZxJhMTVgCbxcoUgMRBSqnQ9EfTw/Uv3J1ONoIAuA==","signatures":[{"sig":"MEUCIQDwUmvTFffz2B0NzlogQ2TEu1vHAJrtaCOEGtBpH8G/AAIgWf1+8fWK33HEv92Es2pTxHlbiOscP1TFdv4Fn2oZtjY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqbYhCRA9TVsSAnZWagAA8/IP/R7kmYErXev2EzXbPjjj\nv4aS7mnUyFDNxUaHbF6D1k09S+sPinjJv/yiVmaVcrZ/pC0f/HoQZgGbI/VJ\nLDOAAPFzueKLQxom0EOU8FDrikNrHvELS/EshqC+PcN0rPLQxrjh/BJb17RW\nvzpycapcpUKUfcFFgnCFODPDiBVjMAf2YtQpZd0MGg0vtxZjn8cJ8NAuOJw8\nsMZUOGrlvxLVvyCu1rURpFGuTJAufy6m4npcpVm9WPqxc/aXVOWv0D+eqbkb\nulY0VgF020zJN7hLs8dnOmbdqv3EgBRfJjl4dnqER98w3Tej4ef1yVS6NK24\nf6XKEqRhBj/RDUnm8jNuYf3Txy3wQx+l9VQmQ3GoZ16RbQ3N8ZC1whQlEB9n\n2JpqOduCJiBErDV9BiPYS1VZ2/RZgVMPU1VZE5EwWPQCGI4cgHBs5gFJq2Hb\nCN+WVT4aRzmayfhcMrx1N+QGUiUFiTUqFjHoLd5dN6L+MPqMGzu16FMn2eUq\nJutaNkDUe714k/Vbf56fgr1vHI8Ydns2xFup45MQjHi0LeYS3qpiuyRuoahq\nxW9RyFasnlsRDhijVCWn3PTpBaOSkBujH1xeADYwt69DlHXw7FYELnw/9dv4\nMlUIo95OSelF/Q+vLioEp57cNts+QQkqqQMV6P0EM1Pu/zJ+9xhOzUF7Dev1\nw/AZ\r\n=DzPR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"378b8c3c97a3247d0d902c33c05625ece5d18d5d","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"song940","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"6.2.0","description":"serve static files for express","directories":{},"_nodeVersion":"10.8.0","dependencies":{"mime2":"latest"},"_hasShrinkwrap":false,"devDependencies":{"express":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static_1.2.6_1537848864480_0.11883004264248576","host":"s3://npm-registry-packages"}},"1.2.7":{"name":"express-static","version":"1.2.7","keywords":["express","express-static"],"author":{"name":"lsong"},"license":"MIT","_id":"express-static@1.2.7","maintainers":[{"name":"lsongdev","email":"song940@gmail.com"}],"homepage":"https://github.com/song940/kelp-static/tree/express","bugs":{"url":"https://github.com/song940/kelp-static/issues"},"bin":{"express-static":"bin/server.js"},"dist":{"shasum":"322a653391e428551fde02a0d0dc69e06c915811","tarball":"https://registry.npmjs.org/express-static/-/express-static-1.2.7.tgz","fileCount":10,"integrity":"sha512-oEzMxDfM2losoFCPYfhEZY+p41TCAEo6SY5SJhQsxWAaO3uLE6AmI9pZMMaESZtPjlDbEYeAEPYG1l46Ng3Auw==","signatures":[{"sig":"MEYCIQDTatYossH3fpLG+QUhNe+ZlrN/5wrUrICegug90YdeYQIhALQJfAM+KWKAlj7wYfyPdsVshT3EJmOn+9Wqd8HDDHhf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDzBxXA74mM+dkVbA9bkoNOfHl5tfESlL75k957TqDxAQIgVZKkeWvgVTWhHUSe7sGLLowaaKQWysu7Uo6YuxdCxyQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12615},"main":"index.js","gitHead":"ff64af9ce25ad23ddc95c87a5977655edc601642","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"lsongdev","email":"song940@gmail.com"},"repository":{"url":"git+https://github.com/song940/kelp-static.git","type":"git"},"_npmVersion":"11.11.0","description":"serve static files for express","directories":{},"_nodeVersion":"24.12.0","dependencies":{"mime2":"latest"},"_hasShrinkwrap":false,"devDependencies":{"express":"*"},"_npmOperationalInternal":{"tmp":"tmp/express-static_1.2.7_1792077068637_0.5357353340606377","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"_id":"express-static@2.0.0","bin":{"express-static":"bin/server.js"},"bugs":{"url":"https://github.com/lsongdev/kelp-static/issues"},"dist":{"shasum":"6aae72aa6c77cfa57f56405e8790f8cc8b76f396","tarball":"https://registry.npmjs.org/express-static/-/express-static-2.0.0.tgz","fileCount":7,"integrity":"sha512-wlpKMEUQpZ26rs5hByjpCldcMtXA1BLaYnCks6DYjXjCLVV8qfDzNa+dUHLAXDnOtnRzoIlFzEfHPnTGzDFEQA==","signatures":[{"sig":"MEUCIQD8o9PTjxPLU5R0tTzf+KNat18ZwlHYXI0zSEtqoStEWQIgX4lGqtPU/QJt1roKS5ZaUpzGG8sX1mYeO/YYWQ2h+UQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBVwLrMROy61BI1NoTHuiDd8IyXqQbywBtYBvpeYM8vHAiEAj4ye+HE2pxPYvs67rl2XDlXYGo3Tiei2TQsPFPpI9Jc="}],"unpackedSize":15821},"main":"index.js","name":"express-static","_from":"file:dist/express-static-2.0.0.tgz","author":{"name":"lsong"},"engines":{"node":">=20"},"license":"MIT","version":"2.0.0","_npmUser":{"name":"lsongdev","email":"song940@gmail.com"},"homepage":"https://github.com/lsongdev/kelp-static#readme","keywords":["static","express","kelp","middleware"],"_resolved":"/Users/Lsong/Projects/express-static/dist/express-static-2.0.0.tgz","_integrity":"sha512-wlpKMEUQpZ26rs5hByjpCldcMtXA1BLaYnCks6DYjXjCLVV8qfDzNa+dUHLAXDnOtnRzoIlFzEfHPnTGzDFEQA==","repository":{"url":"git+https://github.com/lsongdev/kelp-static.git","type":"git"},"_npmVersion":"11.11.0","description":"Secure static file middleware for Node.js, Express and Kelp","directories":{},"maintainers":[{"name":"lsongdev","email":"song940@gmail.com"}],"_nodeVersion":"24.12.0","dependencies":{"mime-types":"^3.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/express-static_2.0.0_1792079246872_0.28086722816133736"}}},"time":{"created":"2014-10-09T08:46:56.425Z","modified":"2026-10-15T15:47:27.181Z","1.0.0":"2014-10-09T08:46:56.425Z","1.0.1":"2014-10-10T03:24:57.561Z","1.0.2":"2014-10-23T07:47:49.010Z","1.0.3":"2014-11-10T04:37:23.423Z","1.1.0":"2017-03-15T07:07:13.883Z","1.2.2":"2017-06-29T14:40:22.068Z","1.2.3":"2017-06-29T14:45:15.316Z","1.2.4":"2017-06-29T14:54:16.721Z","1.2.5":"2017-11-02T11:49:05.919Z","1.2.6":"2018-09-25T04:14:24.602Z","1.2.7":"2026-10-15T15:11:08.733Z","2.0.0":"2026-10-15T15:47:26.977Z"},"bugs":{"url":"https://github.com/lsongdev/kelp-static/issues"},"author":{"name":"lsong"},"license":"MIT","homepage":"https://github.com/lsongdev/kelp-static#readme","keywords":["static","express","kelp","middleware"],"repository":{"url":"git+https://github.com/lsongdev/kelp-static.git","type":"git"},"description":"Secure static file middleware for Node.js, Express and Kelp","maintainers":[{"name":"lsongdev","email":"song940@gmail.com"}],"readme":"# Static file middleware\n\nOne implementation for Node.js HTTP servers, Express and Kelp. Published as both\n`kelp-static` and `express-static`; choose either package name. Version 2 is\nmaintained on `master`, with the same source shared by both packages.\n\nRequires **Node.js 20 or newer**.\n\n```sh\nnpm install kelp-static\n# or: npm install express-static\n```\n\n## Express\n\n```js\nconst express = require('express');\nconst serve = require('kelp-static'); // require('express-static') works identically\n\nconst app = express();\napp.use('/assets', serve('./public'));\napp.listen(3000);\n```\n\n## Kelp\n\n```js\nconst http = require('node:http');\nconst kelp = require('kelp');\nconst serve = require('kelp-static');\n\nconst app = kelp();\napp.use(serve('./public', { listDirectory: true }));\napp.use((req, res, next, err) => {\n  res.statusCode = err ? err.statusCode || 500 : 404;\n  res.end(err ? 'Unable to serve file' : 'Not Found');\n});\nhttp.createServer(app).listen(3000);\n```\n\n## Node.js HTTP\n\nThe library has no framework dependency. Middleware takes `(req, res, next)`;\n`next()` means the request was not served, and `next(err)` reports an error.\n\n```js\nconst http = require('node:http');\nconst serve = require('kelp-static');\n\nconst middleware = serve('./public');\nhttp.createServer((req, res) => {\n  middleware(req, res, err => {\n    res.statusCode = err ? err.statusCode || 500 : 404;\n    res.end(err ? 'Unable to serve file' : 'Not Found');\n  });\n}).listen(3000);\n```\n\n## API\n\n### `serve(root = '.', options = {})`\n\n`root` is resolved against the working directory when middleware is created.\nOptions are validated immediately; unknown options throw a `TypeError`.\n\n| Option | Default | Meaning |\n| --- | --- | --- |\n| `index` | `'index.html'` | A single filename to serve inside directories, or `false` to disable index files. Paths and boolean `true` are rejected. |\n| `listDirectory` | `false` | Render a directory listing if no index file exists. Set `index: false` to always list directories. |\n| `dotfiles` | `'ignore'` | Hide files and directory components beginning with `.`. Set to `'allow'` to expose them explicitly. |\n\nFor example, list directories instead of serving HTML indexes:\n\n```js\nserve('./public', { index: false, listDirectory: true });\n```\n\n- Only `GET` and `HEAD` are served; other methods call `next()`.\n- Files include a MIME type, content length, `Last-Modified` and\n  `X-Content-Type-Options: nosniff`. Unknown extensions use\n  `application/octet-stream`.\n- `HEAD` returns the same headers as `GET` without a body. A valid\n  `If-Modified-Since` date at or after the file's modification time returns `304`.\n- Directories without a trailing slash redirect with `301`. Relative locations\n  preserve mount prefixes and query strings. The slash is added before checking\n  for an index or rendering a listing. A directory with neither falls through.\n- Missing files, traversal attempts, disallowed dotfiles and symlinks resolving\n  outside the root call `next()`. Malformed percent encodings, control characters\n  and backslashes call `next(err)` with status `400`. Other filesystem failures\n  also reach `next(err)`; errors after streaming begins abort the response.\n\n## Security behavior\n\nRequest paths are decoded **once**, then checked using directory boundaries.\nThe resolved filesystem paths are checked again to reject symlink escapes,\nincluding index-file symlinks. A symlink may point within the root; the root\nitself may also be a symlink. Directory listings filter disallowed entries,\nescape HTML and encode filename links, without exposing the absolute root path.\n\nKeep the served tree under trusted administrative control. Filesystem checks\nare not an atomic sandbox against another process that can concurrently replace\ndirectories or symlinks. Use filesystem permissions or OS isolation when serving\ncontent that untrusted users can modify.\n\n## Migrating from version 1\n\nBoth package names now have the same API and behavior. Existing package names and\n`require()` calls continue to work; the differences below are intentional major\nversion changes.\n\n| Previous behavior | Version 2 |\n| --- | --- |\n| `express-static`: `{ index: true }` lists directories | Use `{ index: false, listDirectory: true }`. |\n| Index paths such as `sub/index.html` | Only a single filename is accepted; configure a different root for a subtree. |\n| `kelp-static` may serve `/dir` without a redirect | Directories redirect to `/dir/`, preserving relative links. |\n| Missing files may be passed to the error handler | Missing files call `next()` normally. |\n| Dotfiles were exposed | Hidden by default; explicitly opt in with `dotfiles: 'allow'`. |\n| URLs were used without percent decoding | Paths are decoded once; malformed encodings return `400`. |\n| Different implementations lived on `express` and `master` | Both packages are built from `master`. |\n\nThe path traversal reported by **Alok Ranjan** was fixed in\n`express-static@1.2.7`. Version 2 retains that fix and extends containment checks\nto symlinks and decoded paths.\n\n## Command line\n\nBoth packages include their own command:\n\n```sh\nnpx kelp-static ./public\n# or: npx express-static ./public\n```\n\nThe directory defaults to the current working directory. Set `PORT` to change\nport `8000`. The CLI uses the same middleware, prefers index files, and lists\ndirectories when no index exists. It needs no Express or Kelp installation.\n\n## Development and releases\n\n```sh\nnpm ci\nnpm test\nnpm run pack:releases\n```\n\nTests cover HTTP behavior, Express 4/5 and Kelp integration, the CLI, traversal,\nsymlinks, listing escaping and both installed release tarballs. GitHub Actions\nruns on Linux, macOS and Windows with Node.js 20, 22 and 24.\n\nThe root manifest describes `kelp-static`. `pack:releases` stages the same allowed\nfiles with each package name and CLI name, producing two tarballs in `dist/`.\nThere is no wrapper dependency between the packages. Publish those tested\nartifacts from the same source version:\n\n```sh\nnpm publish ./dist/kelp-static-2.0.0.tgz\nnpm publish ./dist/express-static-2.0.0.tgz\n```\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","readmeFilename":"README.md","users":{"_~":true,"biiu":true,"joelwallis":true}}