118 lines
3.5 KiB
JSON
118 lines
3.5 KiB
JSON
{
|
|
"name": "@suaveplan/mime",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"**/detection/from-magic-bytes/signatures/index.{ts,js}"
|
|
],
|
|
"description": "Structured MIME-type detection, parsing, and registry: magic-byte sniffing, RFC 7231 Content-Type parsing, IANA-sourced type database.",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./content-type": {
|
|
"import": {
|
|
"types": "./dist/content-type/content-type.d.ts",
|
|
"default": "./dist/content-type/content-type.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/content-type/content-type.d.ts",
|
|
"default": "./dist/content-type/content-type.js"
|
|
}
|
|
},
|
|
"./detection": {
|
|
"import": {
|
|
"types": "./dist/detection/detection.d.ts",
|
|
"default": "./dist/detection/detection.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/detection/detection.d.ts",
|
|
"default": "./dist/detection/detection.js"
|
|
}
|
|
},
|
|
"./db": {
|
|
"import": {
|
|
"types": "./dist/db/db.d.ts",
|
|
"default": "./dist/db/db.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/db/db.d.ts",
|
|
"default": "./dist/db/db.js"
|
|
}
|
|
},
|
|
"./charset": {
|
|
"import": {
|
|
"types": "./dist/charset/charset.d.ts",
|
|
"default": "./dist/charset/charset.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/charset/charset.d.ts",
|
|
"default": "./dist/charset/charset.js"
|
|
}
|
|
},
|
|
"./errors": {
|
|
"import": {
|
|
"types": "./dist/errors/mime-error.d.ts",
|
|
"default": "./dist/errors/mime-error.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/errors/mime-error.d.ts",
|
|
"default": "./dist/errors/mime-error.js"
|
|
}
|
|
},
|
|
"./schemas": {
|
|
"import": {
|
|
"types": "./dist/schemas/mime.schemas.d.ts",
|
|
"default": "./dist/schemas/mime.schemas.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/schemas/mime.schemas.d.ts",
|
|
"default": "./dist/schemas/mime.schemas.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"bench": "bun run src/__benchmarks__/mime.bench.ts",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "catalog:testing",
|
|
"mitata": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
}
|
|
}
|