mhtml-stream
Version:
Zero dependency stream MHTML parser
100 lines (99 loc) • 2.44 kB
JSON
{
"name": "mhtml-stream",
"version": "2.0.1",
"description": "Zero dependency stream MHTML parser",
"keywords": [
"mhtml",
"stream"
],
"repository": {
"type": "git",
"url": "git+https://github.com/erikbrinkman/mhtml-stream.git"
},
"author": "Erik Brinkman <erik.brinkman@gmail.com>",
"license": "MIT",
"type": "module",
"types": "dist/index.d.ts",
"module": "dist/mhtml.esm.min.js",
"exports": "./dist/mhtml.esm.min.js",
"files": [
"/dist/**/*.js",
"/dist/**/*.d.ts"
],
"scripts": {
"cli": "bun src/cli.ts",
"fmt": "prettier --cache --write 'src/*.ts' '*.{js,json}'",
"lint": "tsc && eslint --cache 'src/*.ts' && typedoc --emit none",
"doc": "typedoc",
"export": "tsc -p tsconfig.build.json && bun build src/index.ts --minify --outfile dist/mhtml.esm.min.js",
"prepack": "bun lint && bun test --coverage && bun export"
},
"dependencies": {
"base64-js": "^1.5.1"
},
"devDependencies": {
"@types/base64-js": "^1.3.2",
"@types/bun": "^1.1.14",
"@types/yargs": "^17.0.33",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-spellcheck": "^0.0.20",
"eslint-plugin-tsdoc": "^0.4.0",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"typedoc": "^0.27.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1",
"yargs": "^17.7.2"
},
"eslintConfig": {
"rules": {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_+$"
}
],
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"no-warning-comments": [
"error",
{
"terms": [
"fixme"
],
"location": "anywhere"
}
],
"spellcheck/spell-checker": [
"error",
{
"identifiers": false,
"skipIfMatch": [
"[^\\s]{20,}"
],
"skipWords": [
"0x7fffffff",
"Chr",
"Dvalue",
"Hola",
"Mhtml",
"Today’s",
"Uint",
"Yorker",
"ascii",
"delim",
"multipart",
"versa"
]
}
]
}
}
}