md-html-to-pdf
Version:
CLI tool for converting Markdown files or Html files to PDF.
141 lines (140 loc) • 3.71 kB
JSON
{
"name": "md-html-to-pdf",
"version": "4.2.3",
"description": "CLI tool for converting Markdown files or Html files to PDF.",
"keywords": [
"markdown-to-pdf",
"html-to-pdf",
"cli",
"pdf-generation",
"documentation",
"assignments",
"homework",
"markdown",
"pdf",
"puppeteer",
"headless-chrome"
],
"engines": {
"node": ">=16.0"
},
"files": [
"/dist",
"markdown.css"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "tsc -p tsconfig.build.json --watch",
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf dist",
"prepare": "npm run clean && npm run build",
"test": "xo && tsc -p tsconfig.type-test.json && nyc ava src/test/lib.spec.ts && ava src/test/api.spec.ts && ava src/test/cli.spec.ts --timeout=1m",
"release": "npm test && npx standard-version --infile=changelog.md && git push --follow-tags origin master && npm publish",
"loc": "npx cloc src --exclude-dir=test --by-file"
},
"bin": {
"md-html-to-pdf": "dist/cli.js",
"mdhtml2pdf": "dist/cli.js"
},
"author": "jiawei397",
"license": "MIT",
"repository": "jiawei397/md-to-pdf",
"homepage": "https://github.com/jiawei397/md-to-pdf#readme",
"dependencies": {
"arg": "5.0.0",
"chalk": "4.1.1",
"chokidar": "3.5.2",
"get-port": "5.1.1",
"get-stdin": "8.0.0",
"gray-matter": "4.0.3",
"highlight.js": "11.0.1",
"iconv-lite": "0.6.3",
"listr": "0.14.3",
"marked": "2.1.3",
"puppeteer": ">=19.0.0",
"semver": "7.3.5",
"serve-handler": "6.1.3"
},
"devDependencies": {
"@types/listr": "0.14.3",
"@types/marked": "2.0.3",
"@types/node": "^18.14.0",
"@types/semver": "7.3.6",
"@types/serve-handler": "6.1.0",
"ava": "3.15.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "4.3.8",
"nyc": "15.1.0",
"pdfjs-dist": "2.8.335",
"prettier": "2.3.2",
"prettier-plugin-organize-imports": "2.2.0",
"tap-xunit": "2.4.1",
"ts-node": "^10",
"tsd": "0.17.0",
"typescript": "^4",
"xo": "0.39.1"
},
"husky": {
"hooks": {
"post-merge": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet package-lock.json && npm install"
}
},
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"bracketSpacing": true,
"overrides": [
{
"files": [
"package.json"
],
"options": {
"useTabs": false
}
}
]
},
"xo": {
"prettier": true,
"ignores": [
"src/test/mathjax"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"camelcase": "off",
"capitalized-comments": "off",
"no-await-in-loop": "off",
"no-promise-executor-return": "off",
"no-redeclare": "off",
"node/no-unsupported-features/es-syntax": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/string-content": "off"
},
"overrides": [
{
"files": "**/*.spec.ts",
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off"
}
}
]
}
}