├── .gitattributes ├── .github ├── dependabot.yml ├── stale.yml └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── eslint.config.js ├── example ├── public │ ├── .hidden │ │ └── sample.json │ ├── images │ │ └── sample.jpg │ ├── index.css │ ├── index.html │ └── index.js ├── public2 │ ├── test.css │ └── test.html ├── server-compress.js ├── server-dir-list.js ├── server-hidden-file.js └── server.js ├── index.js ├── lib └── dirList.js ├── package.json ├── test ├── content-type.test.js ├── content-type │ ├── binary │ ├── binary.br │ ├── index.css │ ├── index.css.br │ ├── index.html │ ├── index.html.br │ ├── sample.jpg │ ├── test.txt │ └── test.txt.br ├── dir-list.test.js ├── static-dotfiles │ ├── .aaa │ ├── dir │ │ └── index.html │ └── test.txt ├── static-encode │ └── [...] │ │ └── a .md ├── static-filtered │ ├── bar.private │ ├── deep │ │ └── path │ │ │ └── to │ │ │ ├── baz.html │ │ │ └── baz.private │ └── index.html ├── static-hidden │ └── .hidden │ │ └── sample.json ├── static-pre-compressed │ ├── all-three.html │ ├── all-three.html.br │ ├── all-three.html.gz │ ├── baz.json │ ├── dir-gz │ │ ├── index.html │ │ └── index.html.gz │ ├── dir │ │ ├── index.html │ │ └── index.html.br │ ├── empty │ │ └── .gitkeep │ ├── gzip-only.html │ ├── gzip-only.html.gz │ ├── index.html │ ├── index.html.br │ ├── sample.jpg │ ├── sample.jpg.br │ └── uncompressed.html ├── static-symbolic-link │ ├── dir │ │ └── symlink │ └── origin │ │ └── subdir │ │ └── subdir │ │ └── index.html ├── static.test.js ├── static │ ├── .example │ ├── 100%.txt │ ├── a .md │ ├── deep │ │ └── path │ │ │ └── for │ │ │ └── test │ │ │ ├── index.html │ │ │ └── purpose │ │ │ └── foo.html │ ├── foo.html │ ├── foobar.html │ ├── index.css │ ├── index.html │ └── shallow │ │ ├── no-link │ │ └── sample.jpg └── static2 │ ├── bar.html │ └── index.html └── types ├── index.d.ts └── index.test-d.ts /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/eslint.config.js -------------------------------------------------------------------------------- /example/public/.hidden/sample.json: -------------------------------------------------------------------------------- 1 | {"hello": "world"} 2 | -------------------------------------------------------------------------------- /example/public/images/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public/images/sample.jpg -------------------------------------------------------------------------------- /example/public/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public/index.css -------------------------------------------------------------------------------- /example/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public/index.html -------------------------------------------------------------------------------- /example/public/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public/index.js -------------------------------------------------------------------------------- /example/public2/test.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public2/test.css -------------------------------------------------------------------------------- /example/public2/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/public2/test.html -------------------------------------------------------------------------------- /example/server-compress.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/server-compress.js -------------------------------------------------------------------------------- /example/server-dir-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/server-dir-list.js -------------------------------------------------------------------------------- /example/server-hidden-file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/server-hidden-file.js -------------------------------------------------------------------------------- /example/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/example/server.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/index.js -------------------------------------------------------------------------------- /lib/dirList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/lib/dirList.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/package.json -------------------------------------------------------------------------------- /test/content-type.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type.test.js -------------------------------------------------------------------------------- /test/content-type/binary: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/content-type/binary.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/binary.br -------------------------------------------------------------------------------- /test/content-type/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/content-type/index.css.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/index.css.br -------------------------------------------------------------------------------- /test/content-type/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/index.html -------------------------------------------------------------------------------- /test/content-type/index.html.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/index.html.br -------------------------------------------------------------------------------- /test/content-type/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/sample.jpg -------------------------------------------------------------------------------- /test/content-type/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/content-type/test.txt.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/content-type/test.txt.br -------------------------------------------------------------------------------- /test/dir-list.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/dir-list.test.js -------------------------------------------------------------------------------- /test/static-dotfiles/.aaa: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/static-dotfiles/dir/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/static-dotfiles/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/static-encode/[...]/a .md: -------------------------------------------------------------------------------- 1 | example -------------------------------------------------------------------------------- /test/static-filtered/bar.private: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/static-filtered/deep/path/to/baz.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-filtered/deep/path/to/baz.html -------------------------------------------------------------------------------- /test/static-filtered/deep/path/to/baz.private: -------------------------------------------------------------------------------- 1 | baz 2 | -------------------------------------------------------------------------------- /test/static-filtered/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-filtered/index.html -------------------------------------------------------------------------------- /test/static-hidden/.hidden/sample.json: -------------------------------------------------------------------------------- 1 | {"hello": "world"} 2 | -------------------------------------------------------------------------------- /test/static-pre-compressed/all-three.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/all-three.html -------------------------------------------------------------------------------- /test/static-pre-compressed/all-three.html.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/all-three.html.br -------------------------------------------------------------------------------- /test/static-pre-compressed/all-three.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/all-three.html.gz -------------------------------------------------------------------------------- /test/static-pre-compressed/baz.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/baz.json -------------------------------------------------------------------------------- /test/static-pre-compressed/dir-gz/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/dir-gz/index.html -------------------------------------------------------------------------------- /test/static-pre-compressed/dir-gz/index.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/dir-gz/index.html.gz -------------------------------------------------------------------------------- /test/static-pre-compressed/dir/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/dir/index.html -------------------------------------------------------------------------------- /test/static-pre-compressed/dir/index.html.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/dir/index.html.br -------------------------------------------------------------------------------- /test/static-pre-compressed/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/static-pre-compressed/gzip-only.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/gzip-only.html -------------------------------------------------------------------------------- /test/static-pre-compressed/gzip-only.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/gzip-only.html.gz -------------------------------------------------------------------------------- /test/static-pre-compressed/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/index.html -------------------------------------------------------------------------------- /test/static-pre-compressed/index.html.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/index.html.br -------------------------------------------------------------------------------- /test/static-pre-compressed/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/sample.jpg -------------------------------------------------------------------------------- /test/static-pre-compressed/sample.jpg.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/sample.jpg.br -------------------------------------------------------------------------------- /test/static-pre-compressed/uncompressed.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-pre-compressed/uncompressed.html -------------------------------------------------------------------------------- /test/static-symbolic-link/dir/symlink: -------------------------------------------------------------------------------- 1 | ../origin -------------------------------------------------------------------------------- /test/static-symbolic-link/origin/subdir/subdir/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static-symbolic-link/origin/subdir/subdir/index.html -------------------------------------------------------------------------------- /test/static.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static.test.js -------------------------------------------------------------------------------- /test/static/.example: -------------------------------------------------------------------------------- 1 | contents of a dotfile -------------------------------------------------------------------------------- /test/static/100%.txt: -------------------------------------------------------------------------------- 1 | 100% 2 | -------------------------------------------------------------------------------- /test/static/a .md: -------------------------------------------------------------------------------- 1 | example -------------------------------------------------------------------------------- /test/static/deep/path/for/test/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/deep/path/for/test/index.html -------------------------------------------------------------------------------- /test/static/deep/path/for/test/purpose/foo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/deep/path/for/test/purpose/foo.html -------------------------------------------------------------------------------- /test/static/foo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/foo.html -------------------------------------------------------------------------------- /test/static/foobar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/foobar.html -------------------------------------------------------------------------------- /test/static/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/index.html -------------------------------------------------------------------------------- /test/static/shallow/no-link: -------------------------------------------------------------------------------- 1 | /none -------------------------------------------------------------------------------- /test/static/shallow/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static/shallow/sample.jpg -------------------------------------------------------------------------------- /test/static2/bar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static2/bar.html -------------------------------------------------------------------------------- /test/static2/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/test/static2/index.html -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/types/index.d.ts -------------------------------------------------------------------------------- /types/index.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-static/HEAD/types/index.test-d.ts --------------------------------------------------------------------------------