html2canvas-pro
Version:
Screenshots with JavaScript. Next generation!
143 lines (142 loc) • 5.18 kB
JSON
{
"name": "html2canvas-pro",
"description": "Screenshots with JavaScript. Next generation!",
"type": "module",
"main": "dist/html2canvas-pro.js",
"module": "dist/html2canvas-pro.esm.js",
"typings": "dist/types/index.d.ts",
"browser": "dist/html2canvas-pro.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/html2canvas-pro.esm.js",
"require": "./dist/html2canvas-pro.js",
"default": "./dist/html2canvas-pro.esm.js"
}
},
"version": "1.6.2",
"author": {
"name": "yorickshan",
"email": "yorickshan@gmail.com",
"url": "https://github.com/yorickshan"
},
"license": "MIT",
"keywords": [
"html2canvas",
"screenshot"
],
"engines": {
"node": ">=16.0.0"
},
"homepage": "https://yorickshan.github.io/html2canvas-pro/",
"repository": {
"type": "git",
"url": "https://github.com/yorickshan/html2canvas-pro"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^12.3.0",
"@types/chai": "^4.1.7",
"@types/express": "^4.17.13",
"@types/filenamify-url": "^1.0.0",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/jest-image-snapshot": "^6.4.0",
"@types/karma": "^6.3.0",
"@types/mkdirp": "^1.0.2",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.12",
"@types/platform": "^1.3.4",
"@types/promise-polyfill": "^6.0.3",
"@types/serve-index": "^1.9.4",
"@typescript-eslint/eslint-plugin": "^8.50.0",
"@typescript-eslint/parser": "^8.50.0",
"appium-ios-simulator": "^6.1.10",
"base64-arraybuffer": "1.0.2",
"body-parser": "^1.19.0",
"chai": "5.1.1",
"conventional-changelog-cli": "^5.0.0",
"cors": "^2.8.5",
"cz-conventional-changelog": "^3.3.0",
"es6-promise": "^4.2.8",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.5.4",
"express": "^4.17.1",
"filenamify-url": "3.1.0",
"glob": "^11.0.0",
"husky": "^8.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-image-snapshot": "^6.4.0",
"jquery": "^3.5.1",
"js-polyfills": "^0.1.42",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
"karma-edge-launcher": "^0.4.2",
"karma-firefox-launcher": "^2.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-junit-reporter": "^2.0.1",
"karma-mocha": "^2.0.1",
"karma-safarinative-launcher": "^1.1.0",
"karma-sauce-launcher": "^4.3.6",
"lint-staged": "^16.2.7",
"mocha": "^10.7.0",
"node-simctl": "^8.1.2",
"platform": "^1.3.6",
"prettier": "^3.3.3",
"puppeteer": "^22.12.1",
"replace-in-file": "^3.0.0",
"rimraf": "^6.0.1",
"rollup": "^4.24.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"serve-index": "^1.9.1",
"slash": "5.1.0",
"standard-version": "^9.5.0",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"tslib": "^2.3.0",
"typescript": "^5.5.4",
"uglify-js": "^3.13.10",
"vitepress": "^1.3.0",
"yargs": "^17.0.1"
},
"scripts": {
"prebuild": "rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build",
"build": "tsc --module commonjs && npx tsx --tsconfig tsconfig.json ./node_modules/.bin/rollup -c rollup.config.ts && npm run build:create-reftest-list && npx tsx --tsconfig tests/tsconfig.json ./node_modules/.bin/rollup -c tests/rollup.config.ts && npm run build:minify",
"build:testrunner": "npx tsx --tsconfig tests/tsconfig.json ./node_modules/.bin/rollup -c tests/rollup.config.ts",
"build:minify": "uglifyjs --compress --comments /^!/ -o dist/html2canvas-pro.min.js --mangle -- dist/html2canvas-pro.js",
"build:reftest-result-list": "npx tsx scripts/create-reftest-result-list.ts",
"build:create-reftest-list": "npx tsx scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.js",
"release": "sh scripts/version-upgrade.sh",
"format": "prettier --write \"{src,tests,scripts}/**/*.ts\"",
"lint": "eslint src/**/*.ts --max-warnings 0",
"test": "npm run lint && npm run unittest && npm run karma",
"unittest": "jest",
"reftests-diff": "mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts",
"karma": "npx tsx tests/karma",
"watch": "rollup -c rollup.config.ts -w",
"watch:unittest": "mocha --require tsx/register --watch-extensions ts -w src/**/__tests__/*.ts",
"start": "npx tsx tests/server --port=8080 --cors=8081",
"commitlint": "commitlint --config .commitlintrc.json -e -V",
"tag": "sh scripts/create-tag.sh",
"prepare": "if [ \"$SKIP_PREPARE\" != \"true\" ]; then husky install; fi",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"dependencies": {
"css-line-break": "^2.1.0",
"text-segmentation": "^1.0.3"
},
"lint-staged": {
"{src,tests}/**/*.ts": [
"prettier --write",
"eslint --fix"
]
}
}