├── .gitattributes ├── .github ├── renovate.json └── workflows │ ├── CI.yml │ └── lint.yml ├── .gitignore ├── .prettierignore ├── Cargo.toml ├── LICENSE ├── README.md ├── __test__ ├── index.spec.ts ├── package.json └── sample.jpg ├── benchmark ├── bench.ts └── package.json ├── browser.js ├── file-type.wasi-browser.js ├── file-type.wasi.cjs ├── index.d.ts ├── index.js ├── package.json ├── pnpm-lock.yaml ├── rustfmt.toml ├── simple-test.mjs ├── src └── lib.rs ├── tsconfig.json ├── wasi-worker-browser.mjs └── wasi-worker.mjs /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/.prettierignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/README.md -------------------------------------------------------------------------------- /__test__/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/__test__/index.spec.ts -------------------------------------------------------------------------------- /__test__/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /__test__/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/__test__/sample.jpg -------------------------------------------------------------------------------- /benchmark/bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/benchmark/bench.ts -------------------------------------------------------------------------------- /benchmark/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/browser.js -------------------------------------------------------------------------------- /file-type.wasi-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/file-type.wasi-browser.js -------------------------------------------------------------------------------- /file-type.wasi.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/file-type.wasi.cjs -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/index.d.ts -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | tab_spaces = 2 2 | -------------------------------------------------------------------------------- /simple-test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/simple-test.mjs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/src/lib.rs -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/tsconfig.json -------------------------------------------------------------------------------- /wasi-worker-browser.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/wasi-worker-browser.mjs -------------------------------------------------------------------------------- /wasi-worker.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toeverything/file-type/HEAD/wasi-worker.mjs --------------------------------------------------------------------------------