mime-type
Version:
the custom more powerful mime-type utility can work with mime-db.
83 lines • 2.43 kB
JSON
{
"name": "mime-type",
"description": "the custom more powerful mime-type utility can work with mime-db.",
"version": "5.0.3",
"contributors": [
"Riceball LEE https://github.com/snowyu",
"Douglas Christopher Wilson <doug@somethingdoug.com>",
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
],
"license": "MIT",
"keywords": [
"mime",
"mime-db",
"types"
],
"main": "./lib/index.js",
"module": "./src/index.js",
"exports": {
".": {
"types": "./src/index.d.ts",
"require": "./lib/index.js",
"import": "./lib/index.js"
},
"./with-db": {
"types": "./src/with-db.d.ts",
"require": "./lib/with-db.js",
"import": "./lib/with-db.js"
}
},
"repository": "snowyu/mime-type.js",
"dependencies": {
"picomatch": "^4.0.2",
"path.js": "^2.0.1",
"util-ex": "^2.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.16.0",
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/register": "^7.25.9",
"chai": "~5.1.2",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-tsdoc": "^0.4.0",
"mocha": "~11.1.0",
"prettier": "^3.4.2",
"sinon": "~19.0.2",
"typedoc": "^0.27.6",
"typedoc-plugin-markdown": "^4.4.1",
"typescript": "^5.7.3"
},
"pre-commit": [
"test"
],
"typings": "./index.d.ts",
"files": [
"HISTORY.md",
"LICENSE",
"lib",
"src"
],
"engines": {
"node": ">= 8.6"
},
"scripts": {
"build": "npm run build.cjs && npm run build.ts && npm run doc.md",
"build.cjs": "babel src --out-dir lib --config-file ./.babelrc",
"build.ts": "cp src/*.d.ts lib",
"clean": "rm -fr web docs lib",
"clean.doc": "rm -fr web docs",
"clean.ts": "rm -fr lib/*.d.ts",
"clean.lib": "rm -fr lib",
"doc": "typedoc --plugin none --out web ./src",
"doc.md": "typedoc --plugin typedoc-plugin-markdown --out docs ./src",
"lint": "npx eslint --config .eslintrc.yml src",
"lint.fix": "npm run lint -- --fix",
"release": "npm run clean && npm run build && git add docs && git ci -m 'docs: update API docs' && npx commit-and-tag-version -s",
"release.alpha": "npm run release -- --prerelease alpha",
"test": "mocha"
}
}