UNPKG

html-to-image

Version:

Generates an image from a DOM node using HTML5 canvas and SVG.

118 lines (117 loc) 3.21 kB
{ "name": "html-to-image", "version": "1.3.9", "description": "Generates an image from a DOM node using HTML5 canvas and SVG.", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/html-to-image.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib" ], "keywords": [ "screenshot", "cavas", "html", "dom", "render", "image", "vector", "svg" ], "scripts": { "lint": "tslint ./src/*.ts -c tslint.json -p tsconfig.json --fix", "clean": "rimraf dist es lib", "build:esm": "tsc --module esnext --target es2015 --outDir ./es", "build:cjs": "tsc --module commonjs --target es5 --outDir ./lib", "build:umd": "rollup -c", "build": "run-s build:esm build:cjs build:umd", "prebuild": "run-s lint clean", "test": "karma start", "test-debug": "karma start --browsers=Chrome --single-run=false --debug", "test-watch": "karma start --browsers=Chrome --single-run=false --auto-watch", "coveralls": "cat ./test/coverage/lcov.info | coveralls", "pretest": "rimraf ./test/coverage", "prepare": "run-s build" }, "husky": { "hooks": { "prepare-commit-msg": "devmoji -e --lint", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.ts": [ "tslint -c tslint.json -p ./tsconfig.json --fix" ], "**/*.{js,jsx,tsx,ts,less,md,json}": [ "pretty-quick — staged" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "license": "MIT", "authors": { "name": "bubkooo", "email": "bubkoo.wy@gmail.com" }, "contributors": [ { "name": "bubkooo", "email": "bubkoo.wy@gmail.com" }, { "name": "OiNutter", "email": "will@oinutter.co.uk" } ], "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", "@fortawesome/fontawesome-free": "^5.15.1", "@rollup/plugin-commonjs": "^15.1.0", "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-typescript": "^6.0.0", "@types/jasmine": "^3.6.0", "@types/jquery": "^3.5.3", "coveralls": "^3.1.0", "devmoji": "^2.1.9", "husky": "^4.3.0", "imagediff": "^1.0.8", "jasmine-core": "^3.6.0", "karma": "^5.2.3", "karma-chrome-launcher": "^3.1.0", "karma-coverage": "^2.0.3", "karma-jasmine": "^4.0.1", "karma-spec-reporter": "^0.0.32", "karma-typescript": "^5.2.0", "lint-staged": "^10.4.2", "npm-run-all": "^4.1.5", "prettier": "^2.1.2", "pretty-quick": "^3.1.0", "rimraf": "^3.0.0", "rollup": "^2.32.1", "rollup-plugin-filesize": "^9.0.0", "rollup-plugin-terser": "^7.0.2", "tslib": "^2.0.0", "tslint": "^6.1.3", "tslint-config-airbnb": "^5.11.2", "tslint-config-prettier": "^1.18.0", "tslint-eslint-rules": "^5.4.0", "typescript": "^4.0.3" }, "repository": { "type": "git", "url": "git+https://github.com/bubkoo/html-to-image.git" }, "bugs": { "url": "https://github.com/bubkoo/html-to-image/issues" }, "homepage": "https://github.com/bubkoo/html-to-image#readme" }